Skip to content
Prev 11589 / 398502 Next

methods on missing data

Maciej.Hoffman-Wecker at evotecoai.com wrote:
I don't think so :-)
Because you didn't tell var() that it should remove missing values, it
warns you that there are missing values. If you want to remove them the
following gives the answer you expected.
[1] NA
Maybe you should check before if your vector contains only NA's, e.g.,
using is.na()
 
Hope this helps
Achim


---------------------------
Achim Zeileis
Institut f?r Statistik
Technische Universit?t Wien
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._