Processing math: 100%

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

Value

scaled object

params

scalelogical (default = TRUE) Whether to scale values
centerlogical (default = TRUE) Whether to center values
MARGINnumeric. Either 1 (rows) or 2 (cols). Direction along which to perform the operation.

See also

process_param

Other scaling parameters: scale_default