Wrapper around base::scale()
to make it compatible with the
processData()
framework. Additionally provides a MARGIN
param.
zi,j=xi,j−μiσi
Where:
xi,j is the original value for feature i in sample j
μi is the mean of feature i across all samples
σi is the standard deviation of feature i across all samples
zi,j is the resulting scaled value
scaled object
scale | logical (default = TRUE ) Whether to scale values |
center | logical (default = TRUE ) Whether to center values |
MARGIN | numeric. Either 1 (rows) or 2 (cols). Direction along which to perform the operation. |
Other scaling parameters:
scale_default