Skip to content
Prev 124412 / 398498 Next

difference between unique() and !duplicated()

Try this:
+ 1 A 1 yes
+ 2 A 2 yes
+ 3 B 1  no
+ 4 B 1 yes
+ 5 C 2  no
+ 6 C 3  no
+ 7 D 1  no"), header=TRUE)
+     .sub[which.max(.sub$y),]
+ }))
  x y   z
A A 2 yes
B B 1  no
C C 3  no
D D 1  no
On 9/13/07, T.Lok <T.Lok at rug.nl> wrote: