Package: anomalize 0.3.0.9000

Matt Dancho

anomalize: Tidy Anomaly Detection

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.

Authors:Matt Dancho [aut, cre], Davis Vaughan [aut]

anomalize_0.3.0.9000.tar.gz
anomalize_0.3.0.9000.zip(r-4.7)anomalize_0.3.0.9000.zip(r-4.6)anomalize_0.3.0.9000.zip(r-4.5)
anomalize_0.3.0.9000.tgz(r-4.6-any)anomalize_0.3.0.9000.tgz(r-4.5-any)
anomalize_0.3.0.9000.tar.gz(r-4.7-any)anomalize_0.3.0.9000.tar.gz(r-4.6-any)
anomalize_0.3.0.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
anomalize/json (API)
NEWS

# Install 'anomalize' in R:
install.packages('anomalize', repos = c('https://business-science.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/business-science/anomalize/issues

Pkgdown/docs site:https://business-science.github.io

Datasets:

On CRAN:

Conda:

anomalyanomaly-detectiondecompositiondetect-anomaliesiqrtime-series

9.21 score 339 stars 318 scripts 995 downloads 2 mentions 17 exports 133 dependencies

Last updated from:f5d37063c8. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK205
source / vignettesOK270
linux-release-x86_64OK215
macos-release-arm64OK115
macos-oldrel-arm64OK98
windows-develOK152
windows-releaseOK115
windows-oldrelOK178
wasm-releaseOK163

Exports:anomalizeclean_anomaliesdecompose_stldecompose_twittergesdget_time_scale_templateiqrplot_anomaliesplot_anomaly_decompositionprep_tbl_timeset_time_scale_templatetime_applytime_decomposetime_frequencytime_recomposetime_scale_templatetime_trend

Dependencies:anytimeaskpassassertthatbackportsbase64encBHbitbit64broombslibcachemclassclicliprclockcodetoolscolorspacecpp11crayoncrosstalkcurldata.tablediagramdigestdplyrevaluatefarverfastmapfontawesomeforcatsforecastfracdifffsfurrrfuturefuture.applygenericsggplot2globalsgluegowergtablehardhathighrhmshtmltoolshtmlwidgetshttripredisobandjquerylibjsonliteKernSmoothknitrlabelinglaterlatticelavalazyevallifecyclelistenvlmtestlubridatemagrittrMASSMatrixmemoisemimenlmennetnumDerivopensslotelpadrparallellypillarpkgconfigplotlyprettyunitsprodlimprogressprogressrpromisespurrrquadprogquantmodR6rappdirsRColorBrewerRcppRcppArmadilloRcppRollreadrrecipesrlangrmarkdownrpartrsampleS7sassscalesshapeslidersparsevctrsSQUAREMstringistringrsurvivalsweepsystibbletibbletimetidyrtidyselecttimechangetimeDatetimetktinytextseriestsfeaturesTTRtzdburcautf8vctrsviridisLitevroomwarpwithrxfunxtsyamlzoo

Anomalize Methods

Rendered fromanomalize_methods.Rmdusingknitr::rmarkdownon May 16 2026.

Last update: 2023-12-06
Started: 2018-03-22

Anomalize Quick Start Guide

Rendered fromanomalize_quick_start_guide.Rmdusingknitr::rmarkdownon May 16 2026.

Last update: 2023-12-06
Started: 2018-03-22

Reduce Forecast Error with Cleaned Anomalies

Rendered fromforecasting_with_cleaned_anomalies.Rmdusingknitr::rmarkdownon May 16 2026.

Last update: 2023-12-06
Started: 2019-09-20