[R] Does it exist a function for this?

lunarossa gloriaalbe1 at yahoo.it
Wed Oct 5 10:42:20 CEST 2011

I have this kind of matrix, with thousands of cases. 

A 2 apple 
A 2 peach 
A 3 peach 
B 1 pear 
B 4 peach 
B 4 beef 
B 7 beef 
C 1 peach 
D 2 apple 
D 5 peach 

I have to distinguish, from the other rows, the rows with "peach" and this
is not a problem. 

I also have to discriminate the rows with peach like the second one
(associated with the same two cells "A" and "2" to "apple", see first row)
from the row like the 3rd or the 8th ones, when the first two cells are
"unique" ("A" and "3" or "C" and "1").

View this message in context: http://r.789695.n4.nabble.com/Does-it-exist-a-function-for-this-tp3873827p3873827.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list