Skip to content

sgolay

1.0.4Package record

Efficient Savitzky-Golay Filtering

0packages dependsuggested by 1
2.6Kdownloads / year
76.0%test coverage
13/13flavors OK

Overview

About

Smoothing signals and computing their derivatives is a common requirement in signal processing workflows. Savitzky-Golay filters are a established method able to do both (Savitzky and Golay, 1964 doi:10.1021/ac60214a047). This package implements one dimensional Savitzky-Golay filters that can be applied to vectors and matrices (either row-wise or column-wise). Vectorization and memory allocations have been profiled to reduce computational fingerprint. Short filter lengths are implemented in the direct space, while longer filters are implemented in frequency space, using a Fast Fourier Transform (FFT).

Changes in 1.0.4
  • Fix a crash on R >= 4.3 in sgolayfilt() when a plain (unclassed) filter coefficient matrix is passed as p (dim(p) > 1 errored inside && for any matrix; replaced with is.matrix(p)).
  • sgolayfilt() now validates that a custom filter coefficient matrix p has an odd number of rows, instead of silently producing incorrect boundary values.
  • sgolayfilt() now errors with a clear message when x is shorter than the filter length, instead of an obscure "subscript out of bounds" error.
  • Added regression tests for the "auto" engine's filter-length threshold and the fft-to-filter NA fallback.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 1.9 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.0.4
READMEYes · 89 wordsVignettesNoNEWSYes · 100% structured · mentions 1.0.4Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
2 (1 internal)
Examples that run
100%1 run in a plain check
Exported functions with examples
50%
Documented parameters
83%
Return-value docs
50%
Help pages citing references
0%

Downloads

2.6K
CRAN downloads in the past year
Rank #15,218 · ~7/day · ~213/mo
Daily download trend is not available in this view yet.
24230 days
80590 days
2.6K1 year
Compare downloads with other packages →
Also on354 r2u2 autocran

Repository

7Stars
1Forks
0Open issues
0Open PRs
0Releases
66Commits
2Commit identities
License file reads as GPL-2.0 · 66 commits · Last activity 2026-07-10 · 0% stars, 30d · Default branch at 1.0.4.9000, ahead of CRAN 1.0.4 (checked 2026-10-21)
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
6
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2024-03-08 · 62026-07-07 · 7
PracticesBeta

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

Checks run against github.com/zeehio/sgolay 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

Governance and community (1)

The repository owner accepts GitHub Sponsors

Docs source (1)
README.Rmd
Coverage (1)
Coverage reporting (Codecov)
Show all practicesHide 2 practices
CRAN release process (1)
cran-comments.md
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 2026-07-09
    Pull request it wrote: opened by a project member
    Commits: 5 by its own account · at least 5 crediting it in the message
Models named in its commits
  • Claude Sonnet 55 commits · Jul 2026
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
3 external dependencies (excludes base and recommended)

Installing sgolay adds 1 package (1 with compiled code, 1.9 MB of source tarballs). Heaviest: signal 1.9 MB.

Depends (0)
none
Imports (1)
LinkingTo (0)
none
Suggests (2)
Enhances (0)
none
Reverse dependencies
0direct
0indirect
Suggested by 1
Suggests, most downloaded first

People & History

People (7)
Author, Maintainer since 1.0.2 (2022)
Contributor, Copyright holder
Contributor to src/stats_filter.c and src/fft.c (derived from the stats R package)
Contributor, Copyright holder
Contributor to src/stats_filter.c and src/fft.c (derived from the stats R package)
Contributor, Copyright holder
Contributor to src/stats_filter.c and src/fft.c (derived from the stats R package)
Contributor, Copyright holder
Contributor to src/stats_filter.c and src/fft.c (derived from the stats R package)
Contributor, Copyright holder
Contributor to src/stats_filter.c and src/fft.c (derived from the stats R package)
Releases (3)

Pick two releases to compare their code metrics.

  • 1.0.4Latest
    record
    2026-07-10 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 1.0.3
    record
    2023-04-05 · diff ↗
  • 1.0.2
    record
    2022-09-29
  • R
    R 4.2.0 released · 2022-04-22

Package metadata

First published
2022-09-29
Total releases
3 / 4 yrs
License
GPL (>= 2) OSI
Download size
26 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("sgolay")
Oller Moreno, S., Institute for Bioengineering of Catalonia, Gentleman, R., Ihaka, R., Maechler, M., Murdoch, D., & Ripley, B. (2026). sgolay: Efficient Savitzky-Golay Filtering (Version 1.0.4) [Computer software]. https://doi.org/10.32614/CRAN.package.sgolay

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 sgolay version 1.0.4 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-25, 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