[R] na.exclude equivalent

David Kane <David Kane a296180 at mica.fmr.com
Thu May 31 00:03:15 CEST 2001


Is there an R equivalent to the na.action "na.exclude" in S+ for use in lm()?
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.

Thanks,

Dave Kane 


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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