[R] Missing values?
Matej Cepl
matej at ceplovi.cz
Sun Oct 20 01:18:11 CEST 2002
Simple question: I have imported a table from SPSS via read.spss,
but I have not figured out how to tell R that values 8,9 are
considered NA.
After reading help, I thought that something like
is.na(data$P4)<-c(8,9)
would go, but apparently it doesn't (mean gives the same value
without regards to na.rm).
Could anybody help me, please?
Thanks,
Matej
--
Matej Cepl, matej at ceplovi.cz, PGP ID# D96484AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
See, when the GOVERNMENT spends money, it creates jobs; whereas
when the money is left in the hands of TAXPAYERS, God only knows
what they do with it. Bake it into pies, probably. Anything to
avoid creating jobs.
-- Dave Barry
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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