Compute the seasonal (monthly) components of time series

monthly_bins(resids, dates)

Arguments

resids

A numeric vector containing the residual variation of a raw time series after removing the linear trend.

dates

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

Value

A data.frame containing the a numeric vector containing predicted (interpolated) de-trended residuals ('interpolated_seasons'), and a numeric vector containing unpredicted de-trended residuals 'resid_time_series'. See details.

Details

This algorithm follows the steps described in Marshall and Burgess 2015 Ecology Letters 18: 1461–0248, doi: 10.1111/ele.12402.

See also

Author

Diego Barneche and Scott Burgess.