Skip to content

trendseries

Extract Trends from Time Series

v1.2.0 · May 2, 2026 · MIT + file LICENSE

Description

Extract trends from monthly and quarterly economic time series. Provides two main functions: augment_trends() for pipe-friendly 'tibble' workflows and extract_trends() for direct time series analysis. Includes established econometric filters such as Hodrick-Prescott (HP), Baxter-King, Christiano-Fitzgerald, and Hamilton, alongside moving averages and smoothing methods. Smart defaults are tuned for common economic frequencies following Ravn and Uhlig (2002) <doi:10.1162/003465302317411604>.

Downloads

CRAN

512

Last 30 days

7746th

1.4K

Last 90 days

2.5K

Last year

Trend: -11.3% (30d vs prior 30d)

r2u CRAN

1

Last 30 days

39

Last 90 days

78

Last year

Trend: -94.4% (30d vs prior 30d)

autoCRAN

4

Last 7 days

27

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 8, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 7, 2026
ERROR r-devel-linux-x86_64-debian-gcc

re-building of vignette outputs

Error(s) in re-building vignettes:
  ...
sh: 1: cannot create /tmp/Rtmp0Pxzwn/file1fffe4343c1975: No space left on device
Warning in file(con, "r") :
  cannot open file '/tmp/Rtmp0Pxzwn/file1fffe4343c1975': No such file or directory
Error in file(con, "r") : cannot open the connection
Calls: <Anonymous> -> cat -> readLines -> file
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

6,763

Files

73

Compiled share

0%

Has compiled src

No

Language breakdown

R 3,401 (50.3%)Tests 1,821 (26.9%)Docs 831 (12.3%)Vignettes 710 (10.5%)

API

Exported functions

5

Internal functions

49

Recent export changes

v1.1.0+5 augment_trends, df_to_ts, extract_trends +2 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.54

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.1.0

System requirements

C++ standard

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

2

First release

2025-11-12

Latest release

2026-05-02

Avg cadence

171 days

Cold removal rate

Dep drift

0

LOC over versions

v1.1.0: 7,224 LOCv1.2.0: 6,763 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Reverse Dependencies (1)

suggests

Dependency Network

Dependencies Reverse dependencies cli dlm glue hpfilter lubridate mFilter RcppRoll tibble tsbox realestatebr trendseries

Version History

2 tracked
updated 1.2.0 ← 1.1.0 diff May 2, 2026
new 1.1.0 Mar 10, 2026

R Observatory began tracking this package on Mar 10, 2026; it first appeared on CRAN Nov 12, 2025. Releases before tracking aren’t shown.