Skip to content

Commit 2406de3

Browse files
committed
Merge #2
2 parents 74d7b75 + e483840 commit 2406de3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

R/ts_anom_detection.R

+1
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ AnomalyDetectionTs <- function(x, max_anoms = 0.10, direction = 'pos',
165165
if (gran == "sec") {
166166
x <- format_timestamp(aggregate(x[2], format(x[1], "%Y-%m-%d %H:%M:00"),
167167
eval(parse(text = "sum"))))
168+
gran <- "min"
168169
}
169170

170171
period = switch(gran,

0 commit comments

Comments
 (0)