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]
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))
>
>
2 matches
Mail list logo