opensubscriber
   Find in this group all groups
 
Unknown more information…

r : r-help@stat.math.ethz.ch 1 January 2007 • 9:16AM -0500

[R] Subset by using multiple values
by Farrel Buchinsky

REPLY TO AUTHOR
 
REPLY TO GROUP




I have a vector containg about 20 unique values. It is called rejectrs$rs.
It is a factor
I have a data frame with about 100000 rows.
I want to exclude all rows where in variable rs the value is one of the 20
on the exclude list. I thought this would work but none did.

RawSeqBig<-subset(RawSeqBig,ASSAY_ID!=rejectrs$rs)

RawSeqBig<-subset(RawSeqBig,ASSAY_ID!=list(rejectrs$rs))


--
Farrel Buchinsky
Mobile: (412) 779-1073

[[alternative HTML version deleted]]

______________________________________________
R-help@stat... mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.