I don't think the approach would change much with text. You would have
to write a function which picks the 'min' or whatever that means to you
with text and then it should work ok,
Paul
From: Brad Patrick Schneid [via R]
[mailto:ml-node+2279677-1095983982-120...@n4.nabble.com]
Sent: 06 J
If you redefine your NAs as below to be detected as some arbitrary large
number, then the code should work through. Any 5's left in your dataset can
be replaced just as easily by NAs again. Not elegant, but effective.
site <- c("s1", "s1", "s1", "s2","s2", "s2")
pref <- c(1, 2, 3, 1, 2, 3)
R1 <
2 matches
Mail list logo