GetIndex.Switches: An indexing function for 'switch' objects

Description Usage Arguments Value

View source: R/rateSwitchTimes.R

Description

A switch object consists of a set of calendar times and for each calendar time a set of patient times. The function orders the pairs (calendar time, patient time) in lexicographic order and returns the index for the given pair (calendarStartTime, calendarEndTime). An exception is thrown if no suich pair exists

Usage

1
GetIndex.Switches(object, calendarStartTime, patientStartTime)

Arguments

object

A Switches object

calendarStartTime

The calendar switch time for which the index is required

patientStartTime

The patient switch time for which the index is required

Value

The index of the (calendarStartTime, calendarEndTime) pair


scientific-computing-solutions/badminton documentation built on May 29, 2019, 3:43 p.m.