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

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.