View source: R/dataframe_helpers.R
df_force_numeric | R Documentation |
df_force_numeric Converts integer columns of a data frame into numeric.
df_force_numeric(df, cols = NULL)
df |
The data frame. |
cols |
The set of columns to convert to numeric.
By default (when set to |
The converted data.frame
.
# Convert an integer data frame
df <- data.frame(a = as.integer(c(1, 4)), b = as.integer(c(6, 5)))
df <- W4MRUtils::df_force_numeric(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.