center: center

Description Usage Arguments Value Examples

Description

center returns a centered copy of a vector of values. To do this, it subtracts the mean of the vector from each value.

Usage

1
center(x)

Arguments

x

a vector of numeric or integer values

Value

a vector of numeric values

Examples

1
2
a <- c(5, 0, 5, 1, 2, 3, 0, 2, 2, 6)
center(a)

peter-linlin/standarize2 documentation built on May 7, 2019, 8:23 a.m.