Learn R Programming

icmstate (version 0.2.0)

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

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

Arguments

a

Vector of event times

B

Two column matrix containing intervals