dot-scale_variable: Scaling a variable

.scale_variableR Documentation

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)

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.

Value

the input dataframe with the newly scaled 'variable'


basecamb documentation built on May 29, 2024, 11:03 a.m.