[R] extraction
Heberto Ghezzo
Heberto at meakins.lan.mcgill.ca
Thu Apr 19 16:58:04 CEST 2001
Hello.
If I understood BDR correctly then when I want so subset a data
frame, matrix etc. instead of doing
x1 <- x[group == 1]
i should do
x1 <- x[group %in% 1]
the second way being the preferred way to avoid problems with
NA's?
As always thanks to BDR for his prompt , and to the point,
response.
R. Heberto Ghezzo Ph.D.
Meakins-Christie Labs
McGill University
Montreal - Canada
heberto at meakins.lan.mcgill.ca
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list