[R] looking for matches
PAlspach at hortresearch.co.nz
Mon Nov 17 21:32:05 CET 2008
I suspect you want match (or %in%):
> -----Original Message-----
> From: r-help-bounces at r-project.org
> [mailto:r-help-bounces at r-project.org] On Behalf Of Alina Sheyman
> Sent: Tuesday, 18 November 2008 9:04 a.m.
> To: r-help at r-project.org
> Subject: [R] looking for matches
> My question is probably pretty basic, but since I'm really
> new to R, here it goes ....
> I have two separate data frames that include class names and
> various other information on classes. I'm trying to create a
> match based on class names and if a match exists to create a
> third data frame with the class name.
> I was hoping to accomplish this with sapply, but I can't
> figure out if I can embed an "if statement" with sapply. Does
> anyone know if that's a legit way to accomplish what I am
> trying to do or is there some better way?
> thank you,
> Alina Sheyman
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
The contents of this e-mail are privileged and/or confidential to the named
recipient and are not to be used by any other person and/or organisation.
If you have received this e-mail in error, please notify the sender and delete
all material pertaining to this e-mail.
More information about the R-help