Description Usage Arguments Value Examples
windowThreshold Function
1 | windowThreshold(meas_col, meas_norm, time_col, look_backward, look_forward)
|
meas_col |
the numeric column of the measure |
meas_norm |
a numeric vector showing the c(low, high) acceptable range |
time_col |
the time column, as a numeric |
look_backward |
the amount to look backward for an invalid value |
look_forward |
the amount to look forward for an invalid value |
logical vector for each row in the initial time row
1 2 3 4 5 6 | d <- data.frame(
measure = 1:10,
time = 0:9
)
library(dplyr)
d %>% mutate(hit = windowThreshold(measure, c(2,8), time, 2, 0))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.