demean-demedian {transx} | R Documentation |
Removes measure of centrality from the series
Description
Removes the mean, the median or the mode from the series.
Usage
demean(x, na.rm = getOption("transx.na.rm"))
demedian(x, na.rm = getOption("transx.na.rm"))
demode(x, na.rm = getOption("transx.na.rm"))
Arguments
x |
Univariate vector, numeric or ts object with only one dimension. |
na.rm |
A value indicating whether NA values should be stripped before the computation proceeds. |
Value
Returns a vector with the same class and attributes as the input vector.
Examples
x <- c(2,5,10,20,30)
summary(x)
demean(x)
demedian(x)
demode(x)
[Package transx version 0.0.1 Index]