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 the value.

Usage

1
center(x)

Arguments

x

a vector of numeric or integer values

Value

a vector of numeric values

Examples

1
2
a <- 50:100
center(a)

garrettgman/centering documentation built on May 16, 2019, 5:38 p.m.