linear_detrend: Linear detrending of time series

Description Usage Arguments Value Author(s) See Also

View source: R/helpers.R

Description

Linear detrending of time series

Usage

1
linear_detrend(time_series, dates)

Arguments

time_series

A numeric vector containing a raw environmental time series.

dates

An object of class Date of format YYYY-MM-DD (must be in progressive chronological order).

Value

A data.frame containing a numeric vector of the time (in days) for each observation in time_series starting at day 0, and a numeric vector containing the residual variation of time_series after removing the linear trend.

Author(s)

Diego Barneche and Scott Burgess.

See Also

seasonality_and_colour.


dbarneche/envPred documentation built on June 28, 2020, 5:04 p.m.