Re: [R] Subset by using multiple values

2010-11-29 Thread clangkamp
Dear Phil thanks a lot, it worked just perfect ! Christian - Christian Langkamp christian.langkamp-at-gmxpro.de -- View this message in context: http://r.789695.n4.nabble.com/R-Subset-by-using-multiple-values-tp815278p3064295.html Sent from the R help mailing list archive at Nabble.com. _

Re: [R] Subset by using multiple values

2010-11-29 Thread Phil Spector
One possibility would be to paste together the values before subsetting: subset(DC2_m,!paste(as.character(X2),X3,sep='\\0') %in% paste(as.character(Exclude_Data$Code),Exclude_Data$Dates,sep='\\0')) (untested due to lack of a reproducible example). - Phil

Re: [R] Subset by using multiple values

2010-11-29 Thread clangkamp
Hi I would like to extend this item to the following: I have the following table X1 X2 X3 value 1 BVEq AGR 11412 954.75 2 CA_Tot AGR 11412 970.59 ... > str(DC2_m) 'data.frame': 104160 obs. of 4 variables: $ X1 : Factor w/ 62 levels "BVEq","CA_Tot",..: 1 2 3 4 5 6 45 46 47 48 ... .