.scale_variable {basecamb}R 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'


[Package basecamb version 1.1.5 Index]