center: Centering Datasets

Description Usage Arguments Details Value Examples

Description

Some more description.

Usage

1
center(data, desired = 0)

Arguments

data

The numeric vector to be centered

desired

The numeric midpoint value around which the data will be centered (default: 0).

Details

And even more.

Value

A new vector containing the original data centered around the desired values

Examples

1
2
  center(c(1,2,3)) # should return [1] -1  0  1
  center(c(1,2,3), 1) # should return [1] 0 1 2

katrinleinweber/leinwebRRR documentation built on May 10, 2019, 3:18 a.m.