detrend: Remove trend from time series signal

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Remove trend from time series signal

Usage

1

Arguments

x

vector

Details

Removes the trend from a signal.

Value

vector with linear trend removed.

Author(s)

Jonathan M. Lees<[email protected]>

See Also

mean

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
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 documentation built on May 29, 2017, 10:38 p.m.