inst/tinytest/test_streaks.R

x <- c(112, 102, 101, 104, 111, 98, 82, 93, 99, 105, 103, 110)

res <- streaks(x, up = 5, down = -5, relative = FALSE)

res <- streaks(x, up = 1.9, down = -1.9, relative = FALSE)
enricoschumann/PMwR documentation built on May 3, 2024, 10:08 p.m.