Re: [R] Select cases of data.frame based on a long index

2009-06-03 Thread David Winsemius
On Jun 3, 2009, at 6:21 PM, tsunhin wong wrote: Dear R users, I know how to select a subset of a data.frame or a matrix by setting some criteria, but this time, I have a long index of cases not really related to 1 or 2 criteria. And I cannot find a simple way to select cases from another data.

Re: [R] Select cases of data.frame based on a long index

2009-06-03 Thread Bert Gunter
?"%in%" Bert Gunter Genentech Nonclinical Biostatistics -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of tsunhin wong Sent: Wednesday, June 03, 2009 3:21 PM To: r-help@r-project.org Subject: [R] Select cases of data.frame

[R] Select cases of data.frame based on a long index

2009-06-03 Thread tsunhin wong
Dear R users, I know how to select a subset of a data.frame or a matrix by setting some criteria, but this time, I have a long index of cases not really related to 1 or 2 criteria. And I cannot find a simple way to select cases from another data.frame based on this index (sublst in this example).