[R] how to combine several subsets?
tooblue
kaiyan at berkeley.edu
Tue Sep 7 03:22:45 CEST 2010
I simply put,
> NEVER=subset(infants$bwt,ISNO1)
> UNTILPREGNANT=subset(infants$bwt, ISNO2)
> ONCENOTNOW=subset(infants$bwt, ISNO3)
and I wanna combine those three.
I do it like
ISNO=NEVER&UNTILPREGNANT&ONCENOTNOW
and R tells me
1: In NEVER & UNTILPREGNANT :
longer object length is not a multiple of shorter object length
2: In NEVER & UNTILPREGNANT & ONCENOTNOW :
longer object length is not a multiple of shorter object length
I'm confused coz these are not objects, but a list of sets of numbers.
--
View this message in context: http://r.789695.n4.nabble.com/how-to-combine-several-subsets-tp2529044p2529044.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list