q.recodeNA | R Documentation |
Recode specified values as missing (NA)
q.recodeNA(x, pattern=c(-77, -99, -55, -33))
x |
A data frame |
pattern |
A vector of numbers or character strings to be replaced with NA. Default: -77, -99, -55, -33 |
Returns a data frame
Abdul Malik Sulley <asulley@uwo.ca> May 11, 2020
id <- c(1, 2, 3, 4, 5) value <- c(25.2, 33.3, -99, 13.0, -77) dframe <- data.frame(id, value) q.recodeNA(x=dframe, pattern=c(-77, -99))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.