Detrend: Auxiliary function for removing trends and mean from...

Description Usage Arguments Value Examples

Description

Detrend fits a linear function to a time-series of observations or to the time-series of ensemble means of an ensemble matrix. The linear trend is removed, and if option demean is true, the total mean is removed as well.

Usage

1
Detrend(x, demean = TRUE)

Arguments

x

A vector, matrix, or data.frame.

demean

logical; if true, the total mean is removed from x

Value

The function returns an object of the same dimensions as the argument 'x', but with its linear trend and (possibly) its mean removed.

Examples

1
2
3

sieste/SpecsVerification documentation built on May 29, 2019, 9:59 p.m.