convertNumericColumnsToNumeric | R Documentation |
This function converts to numeric those character columns in the input that can be converted to numeric without generating missing values except for the allowed NA representations.
convertNumericColumnsToNumeric(
data,
naStrings = c("NA", "NULL", "NO DATA"),
unFactor = TRUE)
data |
A data frame. |
naStrings |
Character vector of values that are allowd to convert to |
unFactor |
Logical: should the function first convert all factor columns to character? |
A data frame with convertible columns converted to numeric.
Peter Langfelder
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.