[R] subset() for multiple values

chipmaney chipmaney at hotmail.com
Thu Feb 18 18:59:29 CET 2010


This code works:

subset(NativeDominant.df,!ID=="37-R17")


This code does not:

Tree.df<-subset(NativeDominant.df,!ID==c("37-R17","37-R18","10-R1","37-R21","37-R24","R7A-R1","3-R1","37-R16"))



how do i get subset() to work on a range of values?
-- 
View this message in context: http://n4.nabble.com/subset-for-multiple-values-tp1560543p1560543.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list