View source: R/60-interval_index-query-api.R
| pop_containing | R Documentation |
Pop First Containing Interval
pop_containing(x, start, end, bounds = NULL)
x |
An |
start |
Query interval start. |
end |
Query interval end. |
bounds |
Optional boundary override. One of |
Removes the first match in canonical interval order. On miss, returns a
non-throwing miss object with remaining = x.
Use pop_all_containing() to remove all matches.
A list with element, start, end, and remaining.
On miss: element, start, and end are NULL.
ix <- interval_index("a", "b", "c", start = c(1, 2, 4), end = c(6, 3, 7))
pop_containing(ix, 2, 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.