center {fChange} | R Documentation |
Generic Centering of Data
Description
Center data by removing the mean or median. Defining changes allow for regional centering.
Usage
center(object, changes = NULL, type = "mean", ...)
## Default S3 method:
center(object, changes = NULL, type = "mean", ...)
## S3 method for class 'data.frame'
center(object, changes = NULL, type = "mean", ...)
## S3 method for class 'matrix'
center(object, changes = NULL, type = "mean", ...)
## S3 method for class 'dfts'
center(object, changes = NULL, type = "mean", ...)
Arguments
object |
Object for computation of centering. |
changes |
Change points for centering individual sections. |
type |
String of |
... |
Parameters that may be fed into other versions of centering. |
Value
Centered data of the same format as the given data.
See Also
center.default()
, center.data.frame()
,
center.matrix()
, center.dfts()
Examples
center(1:10)
[Package fChange version 2.1.0 Index]