View source: R/60-interval_index-query-api.R
| pop_point | R Documentation |
Pop First Interval Matching a Point
pop_point(
x,
point,
bounds = NULL,
match_at = c("interval", "start", "end", "either")
)
x |
An |
point |
Query point. |
bounds |
Optional boundary override. One of |
match_at |
How the query point is matched against each entry. One of
|
Removes the first match in canonical interval order. On miss, returns a
non-throwing miss object with remaining = x.
Use pop_all_point() 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(3, 2, 5))
pop_point(ix, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.