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.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to