time_recompose: Recompose bands separating anomalies from "normal"...

View source: R/time_recompose.R

time_recomposeR Documentation

Recompose bands separating anomalies from "normal" observations

Description

Recompose bands separating anomalies from "normal" observations

Usage

time_recompose(data)

Arguments

data

A tibble or tbl_time object that has been processed with time_decompose() and anomalize().

Details

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.

Value

Returns a tbl_time object.

See Also

Time Series Anomaly Detection Functions (anomaly detection workflow):

  • time_decompose()

  • anomalize()

Examples


library(dplyr)

data(tidyverse_cran_downloads)

# Basic Usage
tidyverse_cran_downloads %>%
    time_decompose(count, method = "stl") %>%
    anomalize(remainder, method = "iqr") %>%
    time_recompose()



anomalize documentation built on Nov. 2, 2023, 5:13 p.m.