Skip to content

Commit c4ef23e

Browse files
committed
https://github.com/twitter/AnomalyDetection/pull/98
1 parent b9ed343 commit c4ef23e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

R/ts_anom_detection.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ AnomalyDetectionTs <- function(x, max_anoms = 0.10, direction = 'pos',
168168
if (gran == "sec") {
169169
x <- format_timestamp(aggregate(x[2], format(x[1], "%Y-%m-%d %H:%M:00"),
170170
eval(parse(text = "sum"))))
171+
gran <- "min"
171172
}
172173

173174
period = switch(gran,

0 commit comments

Comments
 (0)