center: Center Data

View source: R/center.R

centerR Documentation

Center Data

Description

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

Usage

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 Sept. 15, 2023, 11:35 a.m.