View source: R/fix_functions.R
fix_NA | R Documentation |
Fixes miscoded missing values
fix_NA(
x,
na.strings = c("^$", "^ $", "^\\?$", "^-$", "^\\.$", "^NaN$", "^NULL$", "^N/A$"),
track = TRUE,
parallel = TRUE
)
x |
A data.frame |
na.strings |
Strings to be considered NA |
track |
Track changes? |
parallel |
Should the computations be performed in parallel? Set up strategy first with future::plan() |
mydata <- data.frame(prueba = c("", NA, "A", 4, " ", "?", "-", "+"),
casa = c("", 1, 2, 3, 4, " ", 6, 7))
fix_NA(mydata)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.