powered by
Converts missing values (NAs) to or from a user specified value. From smwrBase package.
NA
na2miss(x, to = -99999)miss2na(x, from = -99999)
miss2na(x, from = -99999)
a vector. Missing values (NAs) are allowed.
the replacement value for NA.
the target value to match and replace with NA.
An object like x with each target value replaced by the specified value.
x
# NOT RUN { ## Construct simple substitutions na2miss(c(1, 2, 3, NA, 5, 6)) # }
Run the code above in your browser using DataLab