NEWS.md

trendseries 1.7.0

trendseries 1.6.1

Indexing

Trend estimation

Errors and warnings

trendseries 1.6.0

Irregular and daily series

Indexing

Centered moving averages

Rolling aggregations

Documentation

trendseries 1.5.0

Rolling and year-to-date aggregations

Missing values and period grids

Series with gaps were previously handled differently by each entry point, and the disagreements were silent. Missing value handling is now one policy, applied everywhere: a gap inside the observed span is rejected, and missing values at the edges are excluded from estimation rather than rejected.

Empty input

Documentation

trendseries 1.4.0

This release combines the 1.3.0 development series, which was never published on CRAN, with the 1.4.0 changes.

New Features

Bug Fixes

Internal Improvements

Documentation

trendseries 1.2.0

Breaking Changes

New Features

Bug Fixes and Improvements

trendseries 1.1.0

Release Date: November 2025

Breaking Changes

Note

trendseries 1.0.1

Release Date: January 2025

Breaking Changes

New Features

Bug Fixes and Improvements

Moving Average Enhancements

Technical Changes

Impact

This is an important correctness fix for users doing seasonal adjustment or business cycle analysis with monthly/quarterly data. The new implementation ensures that centered moving averages with even windows produce econometrically sound results.

trendseries 1.0.0

The first production release of trendseries, an R package for extracting trends from economic time series.

Trend extraction

Two functions cover the main workflows. augment_trends() takes a data frame and adds one trend_{method} column per requested method, with grouped operations through dplyr. extract_trends() takes ts, xts, or zoo objects and returns ts results.

Four families cover the methods in this release.

Both functions share one parameter system across every method, with window, smoothing, band, align, and params. Defaults track the series frequency, so the HP filter sets lambda to 1600 for quarterly and 14400 for monthly data, moving averages default to four-quarter or twelve-month windows, and bandpass filters use the 6-to-32-quarter business cycle range. Monthly and quarterly series are the main target; STL and the moving average methods also run on daily and other frequencies.

Datasets

Ten economic datasets ship with the package.

Installation

# install.packages("devtools")
devtools::install_github("viniciusoike/trendseries")

Quick example

library(trendseries)

gdp_construction |>
  augment_trends(value_col = "index", methods = c("hp", "bk", "ma"))

Links

Built on mFilter, hpfilter, RcppRoll, forecast, dlm, signal, and tsbox. MIT license; requires R 4.1.0 or later.



Try the trendseries package in your browser

Any scripts or data that you put into this service are public.

trendseries documentation built on Oct. 1, 2026, 5:10 p.m.