## Some length() examples
list1 <- IntervalList(c(0, 2, 5), c(1, 6, 10))
length(list1)
dataframe <- data.frame(mids = c(0.5, 4, 7.5, 5),
sprs = c(0.5, 2, 2.5, 1))
list2 <- IntervalList(dataframe, type = 2)
length(list2)
Run the code above in your browser using DataLab