standardize.numeric: Standardize (scale and reduce) numeric variables.

Description Usage Arguments Author(s) Examples

View source: R/standardize.R

Description

Standardize (Z-score, "normalize") a vector.

Usage

1
2
## S3 method for class 'numeric'
standardize(x, normalize = FALSE, ...)

Arguments

x

Numeric vector.

normalize

Will perform a normalization instead of a standardization. This scales all numeric variables in the range 0 - 1.

...

Arguments passed to or from other methods.

Author(s)

Dominique Makowski

Examples

1
2
standardize(x=c(1, 4, 6, 2))
standardize(x=c(1, 4, 6, 2), normalize=TRUE)

neuropsychology/psycho.R documentation built on Sept. 22, 2018, 6:39 p.m.