center: Centering Datasets

Description Usage Arguments Value Examples

Description

Centering Datasets

Usage

1
center(data, desired = 0)

Arguments

data

the numeric vector to be centered

desired

numeric mid-point value around which the data will be centered. Default = 0

Value

this function returns a new vector containing the original _data_ centered around the _desired_ values

Examples

1
center(c(1,2,3),0) -> -1 0 1

julianhocker/FaiR documentation built on May 10, 2019, 3:18 a.m.