windowThreshold: windowThreshold Function

Description Usage Arguments Value Examples

View source: R/RcppExports.R

Description

windowThreshold Function

Usage

1
windowThreshold(meas_col, meas_norm, time_col, look_backward, look_forward)

Arguments

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

Value

logical vector for each row in the initial time row

Examples

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))

West-End-Statistics/r-library-vakdr documentation built on Dec. 18, 2021, 7:16 p.m.