The rescale module changes the scale of the variable(s) using one of the
available rescaling functions: rescale_zscore(),
rescale_minmax(), and rescale_center.
Usage
rescaling(data, ...)
rescale_zscore(var, na.rm = TRUE)
rescale_minmax(var, min = NULL, max = NULL, na.rm = TRUE, censor = TRUE)
rescale_center(var, na.rm = TRUE)
Value
an index table object
Arguments
data
an index table object, see [tidyindex::init()]
...
used in rescaling, a rescaling object of class
rescale, currently one of the rescale_zscore(),
rescale_minmax(), and rescale_center(),
var
the variable(s) to rescale, accept tidyselect syntax
na.rm
used in rescale_*(), logical, whether to remove NAs
min, max
used in rescale_minmax(), the minimum and maximum value
censor
used in rescale_minmax(), logical;
whether to censor points outside min and max, if provided