Skip to content

StructuralDecompose

0.1.1

Decomposes a Level Shifted Time Series

0packages depend
2.8Kdownloads / year
94.8%test coverage
13/13checks pass

Overview

About
Maintained by Allen SunnyFirst published 2023-02-131 releasesCRAN page ↗

Explains the behavior of a time series by decomposing it into its trend, seasonality and residuals. It is built to perform very well in the presence of significant level shifts. It is designed to play well with any breakpoint algorithm and any smoothing algorithm. Currently defaults to 'lowess' for smoothing and 'strucchange' for breakpoint identification. The package is useful in areas such as trend analysis, time series decomposition, breakpoint identification and anomaly detection.

Install

Health

CRAN checks
13OK
Slowest check: 1.3 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.04
94.8%
Coverage · measured lines
100%
Documentation · exports
3
Dependencies · direct
Check history
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 162 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
0%

Downloads

2.8K
CRAN downloads in the past year
Rank #14,910 · ~8/day · ~231/mo
Daily download trend is not available in this view yet.
19930 days
74890 days
2.8K1 year
Compare downloads with other packages →
Also on100 r2u21 autocran35 c2d4u

Repository

Repository
2Stars
0Forks
0Open issues
0Open PRs
0Releases
41Commits
1Contributors
decompositiontimeseries-analysisr
41 commits · Last activity 2026-06-14 · 0% stars, 30d

Stars over time

2023-03-30 · 12026-07-07 · 2

Repository practices

Upstream repositoryBeta

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

Checks run against github.com/allen-1242/structuraldecompose on 2026-07-19.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (1)
renv
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Docs source (1)
README.Rmd
Show all practices
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
6 external dependencies (excludes base and recommended)
Depends (1)
R >= 2.10
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Code Composition
R 608 (59%)Rd 243 (24%)Vignettes 174 (17%)
Code characteristics
Cyclomatic complexity
7.0 median / 15 max
Test cases
1 / 0.04 per code line

Test coverage

Line coverage

1%

Expression

1.1%

Tests / Examples

0.9% / 82% ex

Functions

7 7 exported

Complexity

8.3 avg / 15 max

Call network

7 nodes / 6 edges

Loading call graph…

Lowest coverage

7 functions
FunctionCycloCoverage
AnomalyDetection exp90%
BreakPoints exp70%
LevelCheck exp60%
MeanCleaning exp50%
MedianCleaning exp150%
Smoothing exp60%

Datasets

Bundled datasets · 1
NameClassRows × ColsAlso ships in
Nile_datasetdata.frame100 × 1

People & History

People (1)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Package Timeline

1 release. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.1.1Latest
    2026-03-10 · current release
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2023-02-13
Total releases
1 / 3 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 2.10
Bundled data
0.3 KB / 1 file
Download size
85 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Appears in task views
Report a problem with this page →