expo.scale: Scaling functions for ExPosition.

Description Usage Arguments Value Author(s)

View source: R/expo.scale.R

Description

expo.scale is a more elaborate, and complete, version of scale. Several text options are available, but more importantly, the center and scale factors are always returned.

Usage

1
expo.scale(DATA, center = TRUE, scale = TRUE)

Arguments

DATA

Data to center, scale, or both.

center

boolean, or (numeric) vector. If boolean or vector, it works just as scale.

scale

boolean, text, or (numeric) vector. If boolean or vector, it works just as scale. The following text options are available: 'z': z-score normalization, 'sd': standard deviation normalization, 'rms': root mean square normalization, 'ss1': sum of squares (of columns) equals 1 normalization.

Value

A data matrix that is scaled with the following attributes (see scale):

$'scaled:center'

The center of the data. If no center is provided, all 0s will be returned.

$'scaled:scale'

The scale factor of the data. If no scale is provided, all 1s will be returned.

Author(s)

Derek Beaton


ExPosition documentation built on May 1, 2019, 7:06 p.m.