Description Usage Arguments Details
Time series outlier inspection
1 2 3 4 5 6 7 8 9 10 | insp_outlier(x, ...)
## S3 method for class 'ts'
insp_outlier(x, window_size = 3, anom_method = c("gesd",
"iqr"))
## S3 method for class 'data.frame'
insp_outlier(x, margin = 1L, window_size = 3,
.parallel = FALSE, idcol = NULL, dtcol = NULL,
out_format = c("wide", "long"), anom_method = c("gesd", "iqr"))
|
x |
ts or data.frame |
window_size |
integer window size. Determines how many observations near an outlier are used to calculate the input value. |
anom_method |
"gesd" or "iqr", argument passed to anomalize::anomalize(). |
|
Additional arguments for the data.frame case. See details. |
When margin = 1
, set idcol
to an integer pointing out the index column that identifies the time series;
When margin = 2
, set dtcol
to an integer pointing out the date column;
.parallel TRUE/FALSE if tasks should be parallelized. If TRUE
, uses future
and furrr
packages.
out_format "wide" or "long", indicating output format. If margin = 2
and there are many time series, out_format = "long"
is easier to handle than wide format.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.