[R] na.exclude equivalent
tlumley at u.washington.edu
Thu May 31 00:09:54 CEST 2001
On Wed, 30 May 2001, David Kane <David Kane wrote:
> Is there an R equivalent to the na.action "na.exclude" in S+ for use in lm()?
There will be in about three weeks in R 1.3.0
> My basic problem is that when using resid() to grab the residuals from an lm
> object, I would like place holders for the missing values caused by NA's among
> the input variables. na.omit, of course, removes those observations entirely,
> so I don't know (without going to the trouble of matching up row.names) which
> residuals line up with which input observations.
For now you will have to match up row names or create a data frame
without missing data.
Thomas Lumley Asst. Professor, Biostatistics
tlumley at u.washington.edu University of Washington, Seattle
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