Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

detrend

Remove trend from time series signal


Description

Remove trend from time series signal

Usage

detrend(x)

Arguments

x

vector

Details

Removes the trend from a signal.

Value

vector with linear trend removed.

Author(s)

Jonathan M. Lees<jonathan.lees@unc.edu>

See Also

mean

Examples

dt <- 0.001

 t <- seq(0, 6, by=0.001)


y <- 5*sin(2*pi*10*t)

plot(t,y, type='l')

y <- y  + 3 * t
plot(t,y, type='l')


dy <- detrend(y)

plot(t,dy, type='l')

RSEIS

Seismic Time Series Analysis Tools

v3.9-3
GPL (>= 2)
Authors
Jonathan M. Lees [aut, cre], Jake Anderson [ctb], Leonard Lisapaly [ctb], Dave Harris [aut, cph]
Initial release
2020-08-25

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.