[R] eliminating a large subset of data from a frame

Simon Fear Simon.Fear at synequanon.com
Fri Sep 5 18:02:28 CEST 2003

I can't see what would be wrong with

newdf <- subset(df, uid %in% listofgoodusers)
newdf <- subset(df, !(uid %in% listofbadusers))

Is this what you want? Please note the code you supplied will
not run at all, let alone slowly, so it is not easy to know exactly
what you are trying to achieve

> -----Original Message-----
> newdf<-df
> for(i in listofbadusers) {
>  newdf<-subset(tmp,uid!=i)
> }

Simon Fear
Senior Statistician
Syne qua non Ltd
Tel: +44 (0) 1379 644449
Fax: +44 (0) 1379 644445
email: Simon.Fear at synequanon.com
web: http://www.synequanon.com
Number of attachments included with this message: 0
This message (and any associated files) is confidential and\...{{dropped}}

More information about the R-help mailing list