Convert data to numeric
Convert data to numeric by converting characters to factors and factors to either numeric levels or dummy variables.
convert_data_to_numeric(x, dummy_factors = TRUE, ...) data_to_numeric(x, dummy_factors = TRUE, ...)
x |
A data frame or a vector. |
dummy_factors |
Transform factors to dummy factors (all factor levels as different columns filled with a binary 0-1 value). |
... |
Arguments passed to or from other methods. |
A data frame of numeric variables.
head(convert_data_to_numeric(iris))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.