Skip to content

trendseries

1.7.0Package record

Extract Trends from Time Series

0packages dependsuggested by 1
4.1Kdownloads / year
91.1%test coverage
12/13flavors OK

Overview

About

Provides a unified interface to extract trends, cycles, and seasonal components from monthly and quarterly time series using established filters and smoothers from econometrics and signal extraction, with frequency-aware defaults for common economic frequencies. Rolling and year-to-date aggregations are also available, including the compounded accumulation of rates of change.

Changes in 1.7.0
  • augment_trends() and detrend_series() now accept tsibbles with Date, yearmonth, or yearquarter indices and return tsibbles with the original index and key. Index and key supply the default date and grouping columns; tsibble is optional in Suggests. Other data-frame functions accept tsibbles with a Date index and explain how to convert other index classes.
  • Added stats = "change" to augment_rolling() and roll_series() for the change of a level over window periods, as a decimal or in percent with percent = TRUE (#29).
  • Added window = "all" to augment_rolling() and roll_series() for an expanding window from the first observation, such as a price index chained from monthly inflation (#30).

From NEWS.md in the release

Install

Health

CRAN checks
1ERROR12OK
Check messages
ERRORtestsr-release-windows-x86_64
Running 'testthat.R' [40s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(trendseries)
  > 
  > # Load required packages for testing
  > if (requireNamespace("mFilter", quietly = TRUE)) {
  +   library(mFilter)
  + }
  > 
  > test_check("trendseries")
  Auto-detected quarterly (4 obs/year)
  Auto-detected quarterly (4 obs/year)
  Computing 1 method(s) for 2 group(s):
  i Methods: "ucm"
  i Groups: "alpha" and "beta"
  Auto-detected monthly (12 obs/year)
  Auto-detected quarterly (4 obs/year)
  Computing STL decomposition with s.window = "periodic"
  Auto-detected quarterly 
...[truncated]...
ndex", methods = c("stl", "seats"), .quiet = TRUE)`: X-13ARIMA-SEATS estimation failed.
  x X-13 has returned a non-zero exist status, which means that the current spec file cannot be processed for an unknown reason.
  i X-13 needs at least 3 full years of monthly or quarterly data and a regular series.
  Backtrace:
       ▆
    1. └─trendseries::deseason_series(...) at test-deseason_series.R:119:3
    2.   └─trendseries::decompose_series(...)
    3.     └─trendseries:::.decompose_series_single(...)
    4.       └─trendseries:::.decompose_seats(ts_fit, .quiet, call)
    5.         └─base::tryCatch(...)
    6.           └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    7.             └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
    8.               └─value[[3L]](cond)
    9.                 └─cli::cli_abort(...)
   10.                   └─rlang::abort(...)
  
  [ FAIL 1 | WARN 3 | SKIP 7 | PASS 1271 ]
  Error:
  ! Test failures.
  Execution halted

CRAN check page ↗

Slowest check: 3.9 min · r-oldrel-windows-x86_64
Status changes
  • ERROR12 OK, 1 ERROR2026-10-20
  • OK13 OK2026-10-17
  • ERROR12 OK, 1 ERROR2026-09-24
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
Show 3 earlier changesHide 3 earlier changes
  • OK13 OK2026-06-08
  • ERROR12 OK, 1 ERROR2026-06-07
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.7.0
READMEYes · 928 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 1.7.0Citation fileNoWebsiteYes · pkgdown

The repository also keeps web-only articles.

Help pages
25 (1 internal)
Examples that run
100%10 run in a plain check
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
0%

Downloads

4.1K
CRAN downloads in the past year
Rank #7,028 · ~11/day · ~340/mo
Daily download trend is not available in this view yet.
61330 days
1.2K90 days
4.1K1 year
Compare downloads with other packages →
Also on131 r2u5 autocran

Repository

3Stars
1Forks
1Open issues
0Open PRs
4Releases
224Commits
1Commit identities
business-cyclecrandata-analysiseconometricseconomicsrr-packageseasonal-adjustment
224 commits · Last activity 2026-10-19 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
93%
Median days to close, 50 most recently updated closed issues
48
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-11-19 · 12026-07-14 · 3
PracticesBeta

10 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/viniciusoike/trendseries on 2026-10-21.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-10-19 · The repository has a site deploy workflow

pkgdown site last built 2026-10-19

Reproducibility and dev environment (1)
data-raw/
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Show all practicesHide 1 practice
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2025-09-14
    Named in .Rbuildignore: .claude, CLAUDE.md
    Named in .gitignore: .claude, CLAUDE.md
    Pull request it wrote: opened by a project member
    Commits: at least 143 crediting it in the message
Models named in its commits
  • Claude Sonnet 4.634 commits · Mar to May 2026
  • Claude Opus 4.67 commits · Feb to Mar 2026
  • Claude Opus 4.53 commits · Dec 2025

Some of these counts are a minimum, because the search stopped before the oldest commits.

Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
20 external dependencies (excludes base and recommended)

Installing trendseries adds 23 packages (14 with compiled code, 28 MB of source tarballs). Heaviest: BH 14 MB, data.table 5.7 MB, Rcpp 1.8 MB.

Depends (1)
R >= 4.1.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect
Suggested by 1
Suggests, most downloaded first

Datasets

People & History

People (1)
Author, Maintainer since 1.1.0 (2025), Copyright holder
Releases (4)

Pick two releases to compare their code metrics.

  • 1.7.0Latest
    record
    2026-10-01 · current release · diff ↗ ·
    added 3 exports
    augment_rolling, index_series, roll_series
  • 1.4.0
    record
    2026-07-14 · diff ↗ ·
    removed 1 export
    list_datasets
    added 3 exports
    decompose_series, deseason_series, detrend_series
  • 1.2.0
    record
    2026-05-02 · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 1.1.0
    record
    2025-11-12
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2025-11-12
Total releases
4 / 1 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.1.0
Bundled data
332 KB / 13 files
Download size
755 KB
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("trendseries")
Oike, V. (2026). trendseries: Extract Trends from Time Series (Version 1.7.0) [Computer software]. https://doi.org/10.32614/CRAN.package.trendseries

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for trendseries version 1.7.0 [Data set]. HJJB, LLC. Data release v2026-10-23. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy