lessThan: Compare intervals

Description Usage Arguments Value Examples

View source: R/lessThan.R

Description

Given a data frame representing a set of intervals, return true if row i is less than row j under the order generated by the intervals and false otherwise.

Usage

1
lessThan(intervals, i, j)

Arguments

intervals

data frame (see generateIntervals for the required format)

i

row index of left-hand side of inequality

j

row index of right-hand side of inequaltiy

Value

Boolean value

Examples

1
2
3
4
5
left <- 0:2 * 0.5 + 1
right <- left + 0.75
intervals <- data.frame(left = left, right = right)
lessThan(intervals, 1, 2)
lessThan(intervals, 1, 3)

rankUncertainty documentation built on Nov. 16, 2021, 1:07 a.m.