[R] Missing Values from Spss-Data
Prof Brian D Ripley
ripley at stats.ox.ac.uk
Thu Aug 23 09:39:29 CEST 2001
On Thu, 23 Aug 2001, C. Schulz wrote:
> Hello,
> i'm a newbie of the really fantastic "R" , but have some
> problems to define Missing Values from Spss-Files which i import
> with the read.spss(data) command !
>
> What should i do to recode i.e. the values 9,99 & 999 to NA.
> Something like this
>
> x <- c(9,99,999,NA)
> x==NA
x[x %in c(9,99,999)] <- NA
>
> ...do not what i want, because the data.frame show
> the values 9,99 & 999 and not NA in this fields ?
>
> P.S. Perhaps is it easier to define all Missing Values in
> SPSS to
> SYSMIS so that i have got a blank and R automatically
> define's NA to the blanks ???
>
> Best thanks for advance
> and regards, christian
>
>
>
>
>
>
>
>
>
> _______________________________________________________________________
> 1.000.000 DM gewinnen - kostenlos tippen - http://millionenklick.web.de
> IhrName at web.de, 8MB Speicher, Verschluesselung - http://freemail.web.de
>
>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> 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
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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