Java Mailing List Archive

http://www.r-help.com/

Home » R Help for Statistical Computing »

[R] how to combine several subsets?

tooblue

2010-09-06

Replies: Find Java Web Hosting

Author LoginPost Reply

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.
--
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@(protected)
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.
©2008 r-help.com - Jax Systems, LLC, U.S.A.