normalize: Normalize

View source: R/normalize.R

normalizeR Documentation

Normalize

Description

Normalize vector to a dimensionless scale.

Usage

normalize(x, method = "uniform")

Arguments

x

a numeric vector.

method

either "uniform" (range 0-1), "student" (mean 0, sd 1), or "relative" (mean 1, original cv).

Value

Numeric vector.

Note

For example, c(10,20,30) becomes:

uniform    0.0  0.5  1.0
student   -1.0  0.0  1.0
relative   0.5  1.0  1.5

See Also

scale, equivalent to method = "student".


arnima-github/arni documentation built on Oct. 28, 2023, 6:18 p.m.