Description Usage Arguments Value Examples
Method for inserting an interval into an IntervalTree object. Given an ordered pair of numbers denoting the start and end of an interval, the interval is first converted into an Interval object, then the Interval object is inserted by calling the insert() function.
1 2 | ## S4 method for signature 'IntervalTree,character'
insertInterval(theObject, anInterval)
|
theObject |
an IntervalTree object |
anInterval |
an interval in the form of (name, start, end). |
an IntervalTree object.
1 2 3 4 | m_ranges <- data.frame(c("A", "B", "C", "D"), c(-1.1,2,3,4), c(5,4,6,10))
m_interval_tree <- new("IntervalTree", data=m_ranges, root=list())
m_interval_tree <- insertInterval(m_interval_tree, c("testInterval2", 200, 500))
res <- insertInterval(m_interval_tree, c("a",-25,7))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.