We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9ed343 commit c4ef23eCopy full SHA for c4ef23e
1 file changed
R/ts_anom_detection.R
@@ -168,6 +168,7 @@ AnomalyDetectionTs <- function(x, max_anoms = 0.10, direction = 'pos',
168
if (gran == "sec") {
169
x <- format_timestamp(aggregate(x[2], format(x[1], "%Y-%m-%d %H:%M:00"),
170
eval(parse(text = "sum"))))
171
+ gran <- "min"
172
}
173
174
period = switch(gran,
0 commit comments