View source: R/60-interval_index-query-api.R
| peek_within | R Documentation |
Peek First Interval Within a Query Interval
peek_within(x, start, end, bounds = NULL)
x |
An |
start |
Query interval start. |
end |
Query interval end. |
bounds |
Optional boundary override. One of |
Returns the first match in canonical interval order. Use peek_all_within()
to retrieve all matches as an interval_index slice.
The payload value from the first match, or NULL on no match.
ix <- interval_index("a", "b", "c", start = c(1, 2, 4), end = c(6, 3, 5))
peek_within(ix, 1, 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.