powered by
Represent the order generated by a set of intervals as a boolean matrix. This is a common input format for programs that operate on partial orders.
toMatrix(intervals, strict = FALSE, binary = FALSE)
data frame (see generateIntervals for the required format)
is this <= or <?
output is coded as 0/1 if TRUE and FALSE/TRUE otherwise
A boolean matrix. If strict is set to TRUE, the (i, j)th entry is intervals[i, 'right'] < intervals[j, 'left']. If strict is set to false, <= is used in place of <.
# NOT RUN { intervals <- generateIntervals(10) toMatrix(intervals) # }
Run the code above in your browser using DataLab