Re: [R] Reconciling 2 datasets

2010-07-23 Thread Bert Gunter
Have you read AN INTRODUCTION TO R? ?%in% Bert Gunter Genentech Nonclinical Statistics > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf Of chipmaney > Sent: Friday, July 23, 2010 3:39 PM > To: r-help@r-project.org > Subject: [R]

Re: [R] Reconciling 2 datasets

2010-07-23 Thread Jorge Ivan Velez
Try Empirical.df[Empirical.df$ID %in% Samples.v,] See ?"%in%" for more informartion. HTH, Jorge On Fri, Jul 23, 2010 at 6:38 PM, chipmaney <> wrote: > > I have a dataframe: > > Empirical.df <- data.frame(ID=c("MCUP1-2","MCUP2-5", "MCUP3-3", > "MCUP4-3","MCUP5-9"), Cover=c(60,40,45,68,72)) > >