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

1.4K

Last 30 days

3253rd

5.9K

Last 90 days

46.1K

Last year

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

CRAN Check Status

14 OK
Show all 14 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-macos-arm64 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 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

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