Description Usage Arguments Value Examples
tidy missing values Replaces all specified missing values (e.g. "n.a", "x") with proper NA in the specified columns
1 | tidy_missing_values(tbl, values, columns)
|
tbl |
The table to be cleaned |
values |
Values to be replaces (e.g. "n.a", "x") |
columns |
The columns to be cleaned |
The cleaned table
1 2 3 4 | fruits <- c("Pear", "Apple", "n.a", "X")
veggies <- c("Cauliflower", "X", "Cauliflower", "n.a")
d <- data.frame(veggies,fruits)
d <- waRRior::tidy_missing_values(d, c("n.a", "X"), c("veggies", "fruits"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.