Description Usage Arguments Details Value Examples
Tidy up a data frame with respect to missing values, internal quotes, and white space.
1 2 3 4 5 |
df |
A data frame to be tidied. |
missNums |
A numeric vector of numbers representing missing values in |
missChars |
A character vector of strings representing missing values in |
Missing values in df
are replaced with NA for numeric vectors
and "" for character vectors.
Internal quotes and leading and trailing white space
in character vectors are removed.
Attempt is made to convert any character vectors of numbers to numeric.
A tidied version of the original data frame.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.