View source: R/generic_functions.R
center | R Documentation |
Center data by removing the mean or median. Defining changes allow for regional centering.
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", ...)
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. |
Centered data of the same format as the given data.
center.default()
, center.data.frame()
,
center.matrix()
, center.dfts()
center(1:10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.