center: Center Data

Description Usage Arguments Value

View source: R/center.R

Description

Subtract a measure of central tendency from data causing data's center to become zero.

Usage

1
center(x, center.function = mean, center.function.na.rm = T)

Arguments

x

A vector of values to be centered

center.function

A function to use as a measure of center

center.function.na.rm

logial (T/F) identifying whether NA should be dropped from input

Value

A vector containing centered data (central tendency of zero).


burrm/lolcat documentation built on Oct. 13, 2021, 11:35 p.m.