View source: R/50-ordered_sequence-ops.R
| peek_key | R Documentation |
Returns the first element whose key equals key.
peek_key(x, key)
x |
An |
key |
Query key. |
For duplicate keys, this returns the first element in stable sequence order.
Matched element, or NULL when no matching key exists.
x <- ordered_sequence("a", "b", "c", keys = c(1, 2, 2))
peek_key(x, 2)
peek_key(x, 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.