Ng
To: r-help@r-project.org
Cc:
Sent: Saturday, October 27, 2012 2:07 AM
Subject: [R] Searching up a list of values
Dear list,
Sorry if this is a really simple question to ask, but I have been stuck at
this for some time and have no luck so far.
I have 2 data files- a file containing IDs which
Hello,
Try the following.
idx <- B$ID %in% A
B[idx, ]
In the case of your data example, the return value is 0 rows. (No matches)
Also, the best way to post a data example is using ?dput
dput( head(B, 30) ) # copy & paste the output of this
Hope this helps,
Rui Barradas
Em 27-10-2012 07:07,
Dear list,
Sorry if this is a really simple question to ask, but I have been stuck at
this for some time and have no luck so far.
I have 2 data files- a file containing IDs which I am interested in (maybe
about 20 of them)- lets call this file A, and another file containing all
the IDs (which is
3 matches
Mail list logo