Time Series Missing Value Imputation
Overview
Imputation (replacement) of missing values in univariate time series. Offers several imputation functions and missing data plots. Available imputation algorithms include: 'Mean', 'LOCF', 'Interpolation', 'Moving Average', 'Seasonal Decomposition', 'Kalman Smoothing on Structural Time Series models', 'Kalman Smoothing on ARIMA models'. Published in Moritz and Bartz-Beielstein (2017) doi:10.32614/RJ-2017-009.
- Added ggplot_na_gapsize2 plot (and unit tests). Nice way to illustrate how different NA gapsizes (consecutive NAs in a row) amount for NA totals.
- Fix of the CITATION file to comply with newer CRAN rules
- Update of ggplot_na_imputations() to avoid using now depreciated ggplot2 options
- Update of unit tests for all plotting functions (ggplot_na_...). Now using is_ggplot() to check for correct output. This was necessary because of a major ggplot2 update (switch to s7 classes).
From NEWS.md in the release
Install
Health
NOTER code for possible problemsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
Found calls to structure() using deprecated special names: imputeTS/tests/testthat/test-ggplot_na_distribution.R (.Tsp: 1) imputeTS/tests/testthat/test-ggplot_na_distribution2.R (.Tsp: 1) imputeTS/tests/testthat/test-ggplot_na_gapsize.R (.Tsp: 1) imputeTS/tests/testthat/test-ggplot_na_gapsize2.R (.Tsp: 1) imputeTS/tests/testthat/test-ggplot_na_imputations.R (.Tsp: 1) imputeTS/inst/doc/gallery_visualizations.R (.Tsp: 1) '.Tsp' should be changed to 'tsp'.
- NOTE8 OK, 5 NOTENow
- NOTE11 OK, 2 NOTE2026-07-16
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-04-22
- ERROR13 OK, 1 ERROR2026-04-18
Show 1 earlier changeHide 1 earlier change
- OK14 OK2026-03-10
Documentation
- Help pages
- 39 (17 internal)includes a package overview page
- Examples that run
- 100%16 run in a plain check
- Exported functions with examples
- 50%
- Documented parameters
- 83%
- Return-value docs
- 42%
- Help pages citing references
- 10%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 79
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
7 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/steffenmoritz/imputets on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows
GitHub Pages site last deployed 2025-08-24 · The repository has a site deploy workflow
pkgdown site last built 2025-08-24, before release 3.4 (2025-08-25)
Dependencies
Installing imputeTS adds 41 packages (24 with compiled code, 35 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, colorspace 2.0 MB.
Show all 26 packagesHide all 26 packages
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 3.4Latest
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 3.3
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 3.22021-01-16 · diff ↗
- 3.12020-08-04 · diff ↗ ·
added 4 exports
ggplot_na_distribution, ggplot_na_gapsize, ggplot_na_imputations, ggplot_na_intervals - RR 4.0.0 released · 2020-04-24
- 3.02019-07-01 · diff ↗ ·
added 10 exports
na_interpolation, na_kalman, na_locf, na_ma, na_mean, na_random, na_remove, na_replace, na_seadec, na_seasplit - RR 3.6.0 released · 2019-04-26
- 2.7
- RR 3.5.0 released · 2018-04-23
- 2.62018-03-20 · diff ↗
Show 17 earlier eventsHide 17 earlier events
- 2.52017-06-13 · diff ↗
- 2.42017-06-05 · diff ↗
- 2.32017-05-21 · diff ↗
- 2.22017-04-23 · diff ↗
- RR 3.4.0 released · 2017-04-21
- 2.12017-04-18 · diff ↗
- 2.02017-04-08 · diff ↗
- 1.92017-03-09 · diff ↗
- 1.82017-01-25 · diff ↗
- 1.72016-10-13 · diff ↗
- 1.62016-06-03 · diff ↗
- RR 3.3.0 released · 2016-05-03
- 1.52016-04-28 · diff ↗ ·
removed 3 exports
vis.barMissing, vis.imputations, vis.missingadded 7 exports
na.kalman, na.ma, plotNA.distribution, plotNA.distributionBar, plotNA.gapsize, plotNA.imputations, statsNA - 0.42015-12-04 · diff ↗ ·
removed 1 export
vis.differencesadded 3 exports
vis.barMissing, vis.imputations, vis.missing - 0.3
- 0.12015-07-22
- RR 3.2.0 released · 2015-04-16
Package metadata
- First published
- 2015-07-22
- Total releases
- 21 / 11 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.6
- Bundled data
- 574 KB / 6 files
- Download size
- 2.1 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("imputeTS")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
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.