Detrend a time series

ts_detrend(y, polyOrder = 1, adaptive = FALSE)

Arguments

y

A time series of numeric vector

polyOrder

order Order of polynomial trend to remove

Value

Residuals after detrending polynomial of order order

Author

Fred Hasselman