View source: R/50-ordered_sequence-ops.R
| upper_bound | R Documentation |
> QueryFind First Element with Key > Query
upper_bound(x, key)
x |
An |
key |
Query key. |
upper_bound() finds the first element with key > key. This skips exact
key matches, which is useful for exclusive range endpoints and for finding
the position immediately after a duplicate-key run.
A list with fields:
found: logical flag.
index: one-based position of the first match, or NULL.
value: matched element, or NULL.
key: matched key, or NULL.
lower_bound()
x <- ordered_sequence("a", "b", "c", keys = c(1, 2, 2))
upper_bound(x, 2)
upper_bound(x, 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.