.scale_variable | R Documentation |
A helper function to scale a variable in a dataframe. Divides 'variable' by 'scaling_denominator'.
.scale_variable(data, variable, scaling_denominator)
data |
data.frame |
variable |
a char indicating the variable to be scaled |
scaling_denominator |
a numeric indicating the scaling. The variable is divided by the scaling_denominator. |
the input dataframe with the newly scaled 'variable'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.