Description Usage Arguments Details Value See Also Examples
View source: R/time_recompose.R
Recompose bands separating anomalies from "normal" observations
1 |
data |
A |
The time_recompose()
function is used to generate bands around the
"normal" levels of observed values. The function uses the remainder_l1
and remainder_l2 levels produced during the anomalize()
step
and the season and trend/median_spans values from the time_decompose()
step to reconstruct bands around the normal values.
The following key names are required: observed:remainder from the
time_decompose()
step and remainder_l1 and remainder_l2 from the
anomalize()
step.
Returns a tbl_time
object.
Time Series Anomaly Detection Functions (anomaly detection workflow):
time_decompose()
anomalize()
1 2 3 4 5 6 7 8 9 | library(dplyr)
data(tidyverse_cran_downloads)
# Basic Usage
tidyverse_cran_downloads %>%
time_decompose(count, method = "stl") %>%
anomalize(remainder, method = "iqr") %>%
time_recompose()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.