diff --git a/R/ts_anom_detection.R b/R/ts_anom_detection.R index a7e3abe..fdc1dfd 100644 --- a/R/ts_anom_detection.R +++ b/R/ts_anom_detection.R @@ -167,6 +167,7 @@ AnomalyDetectionTs <- function(x, max_anoms = 0.10, direction = 'pos', } period = switch(gran, + sec = 3600, min = 1440, hr = 24, # if the data is daily, then we need to bump the period to weekly to get multiple examples