Skip to contents

Standardize a vector

Usage

standardize(data)

Arguments

data

A numerical vector to be standardized.

Value

A vector that is the standardized version of data.

Examples

x <- c(1,0,1,3,3)
standardize(x)
#> [1] -0.4472136 -1.1925696 -0.4472136  1.0434984  1.0434984