[R] comparision and removal
gynmeerut
gynmeerut at indiatimes.com
Wed Jan 4 21:16:25 CET 2006
Dear All,
I am using R and I am putting my problem in form of an example:
X<-c(128,34,153,987,345,45,3454,23,123)
I want to remove the entries which are lesser than 100(? How to compare every element with 100 and how to create subsets )
and I need two vectors y and z s.t
y<-c(entries < 100)
z<- c(remaining entries)
Moreover, Please tell me which command to use if I want to use different programs for y and z.
X is the whole dataset and y,z are its disjoint subsets.
Thanks
GS
More information about the R-help
mailing list