View source: R/range_as_mean.R
range_as_mean | R Documentation |
This function allows you to convert each range into their mean, even if it has string elements, make sure your delete any don't wanted numbers in the range.
range_as_mean(df, vars)
df |
The dataframe containing the variables you want to changes. |
vars |
a variable (or vector of variables) quoted that you want to change from a range to their mean. |
The mean of vars
.
range_as_mean(df, "salary")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.