center: Centering datasets

Description Usage Arguments Details Value Examples

Description

Some more description.

Usage

1
center(data, desired)

Arguments

data

The numeric vector to be centered

desired

The numeric midpoint value around wich the data will be centered

Details

And even more.

Value

A new vector containing the original _dat_ centered around the _desired_ values

Examples

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

TobiasDressel/DRessel documentation built on May 10, 2019, 3:15 a.m.