detrend | R Documentation |
Remove trend from time series signal
detrend(x)
x |
vector |
Removes the trend from a signal.
vector with linear trend removed.
Jonathan M. Lees<jonathan.lees@unc.edu>
mean
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')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.