Skip to content
Prev 345685 / 398502 Next

select same row in a data frame several times

On 15/11/14 10:45, Pedro Mardones wrote:
AA <- A[match(B,A$ID2),]

cheers,

Rolf Turner

P.S. The syntax "A$ID2 %in% B == TRUE" is a message brought to you by 
the Department of Redundancy Department, and it drives me _crazy_!  Just 
use "A$ID2%in%B,".

If "v" is a logical vector then "v==TRUE" is identical to v.

See fortune(69).

R. T.