.scale_variable: Scaling a variable
Description
A helper function to scale a variable in a dataframe.
Divides 'variable' by 'scaling_denominator'.
Usage
.scale_variable(data, variable, scaling_denominator)
Value
the input dataframe with the newly scaled 'variable'
Arguments
- 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.