
Last chance! 50% off unlimited learning
Sale ends in
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)
A data frame with convertible columns converted to numeric.
A data frame.
Character vector of values that are allowd to convert to NA
(a missing numeric value).
Logical: should the function first convert all factor columns to character?
Peter Langfelder