[R] Multiple missing values

Jim Lemon jim at bitwrit.com.au
Mon Feb 15 04:14:53 CET 2010

John wrote:
> ...
> Does anyone know, or know documentation that describes, how to declare
> multiple values in R as missing that does not involve coding them as NA? I
> wish to be able to treate values as missing, while still retaining codes
> that describe the reason for the value being missing.

I would suggest leaving the "missing values" as is in your data file and 
recoding these to NA at the top of each analysis script you run. I find 
that the only place I usually make use of such information is in the 
initial descriptives, although you may want to selectively recode for 
different analyses.


More information about the R-help mailing list