ainB {icmstate} | R Documentation |
Check if event time is contained within half-open interval
Description
Function which takes as input a vector a with event times and a 2 column matrix B representing half-open intervals (l, R] and checks whether each event time is contained in each half-open interval.
Usage
ainB(a, B)
Arguments
a |
Vector of event times |
B |
Two column matrix containing intervals |
Value
Matrix of size (length(a) * nrow(B)) with binary values indicating whether the event times in a are contained in the intervals of B
[Package icmstate version 0.1.1 Index]