powered by
Convert data to numeric by converting characters to factors and factors to either numeric levels or dummy variables.
convert_data_to_numeric(x, ...)data_to_numeric(x, ...)# S3 method for data.frame convert_data_to_numeric(x, dummy_factors = TRUE, ...)
data_to_numeric(x, ...)
# S3 method for data.frame convert_data_to_numeric(x, dummy_factors = TRUE, ...)
A data frame or a vector.
Arguments passed to or from other methods.
Transform factors to dummy factors (all factor levels as different columns filled with a binary 0-1 value).
A data frame of numeric variables.
# NOT RUN { convert_data_to_numeric(head(ToothGrowth)) convert_data_to_numeric(head(ToothGrowth), dummy_factors = FALSE) # }
Run the code above in your browser using DataLab