standardize: Center and/or Z-Score Transform a Vector or Array

standardizeR Documentation

Center and/or Z-Score Transform a Vector or Array

Description

If both arguments center and scale are FALSE, function will throw an error to ensure user is aware of this potential mistake.

Usage

standardize(x, center = TRUE, scale = TRUE)

Arguments

x

a vector or 2D array of numeric or integer values

center

logical if TRUE will center the resulting object

scale

logical if TRUE data will be returned as z-score transform of x.


trashbirdecology/bbsebird documentation built on June 30, 2022, 12:18 a.m.