Skip to content

anomalize

Tidy Anomaly Detection

v0.3.0 · Oct 31, 2023 · GPL (>= 3)

Description

The 'anomalize' package enables a "tidy" workflow for detecting anomalies in data. The main functions are time_decompose(), anomalize(), and time_recompose(). When combined, it's quite simple to decompose time series, detect anomalies, and create bands separating the "normal" data from the anomalous data at scale (i.e. for multiple time series). Time series decomposition is used to remove trend and seasonal components via the time_decompose() function and methods include seasonal decomposition of time series by Loess ("stl") and seasonal decomposition by piecewise medians ("twitter"). The anomalize() function implements two methods for anomaly detection of residuals including using an inner quartile range ("iqr") and generalized extreme studentized deviation ("gesd"). These methods are based on those used in the 'forecast' package and the Twitter 'AnomalyDetection' package. Refer to the associated functions for specific references for these methods.

Downloads

CRAN

879

Last 30 days

3821st

2.7K

Last 90 days

42.5K

Last year

Trend: +7.5% (30d vs prior 30d)

r2u CRAN

17

Last 30 days

44

Last 90 days

157

Last year

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

autoCRAN

6

Last 7 days

58

Last 30 days

4

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 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

package dependencies

Packages required but not available: 'timetk', 'sweep'

Packages suggested but not available for checking: 'tidyverse', 'tidyquant'

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (2)

suggests

Dependency Network

Dependencies Reverse dependencies dplyr glue timetk sweep tibbletime purrr rlang tibble tidyr ggplot2 pathviewr whippr anomalize

Version History

9 tracked
new 0.3.0 Mar 10, 2026
updated 0.3.0 ← 0.2.4 diff Oct 30, 2023
updated 0.2.4 ← 0.2.3 diff Sep 25, 2023
updated 0.2.3 ← 0.2.2 diff Feb 8, 2023
updated 0.2.2 ← 0.2.1 diff Oct 19, 2020
updated 0.2.1 ← 0.2.0 diff Jun 18, 2020
updated 0.2.0 ← 0.1.1 diff Sep 20, 2019
updated 0.1.1 ← 0.1.0 diff Apr 16, 2018
new 0.1.0 Apr 5, 2018