View source: R/50-ordered_sequence-constructors.R
| ordered_sequence | R Documentation |
Convenience constructor from ... and matching keys.
ordered_sequence(..., keys)
... |
Elements to add. |
keys |
Key values with the same length as |
Empty construction is supported: ordered_sequence() returns an empty
ordered sequence.
Output is always sorted by key, with stable order across duplicate keys.
An ordered_sequence.
xs <- ordered_sequence("bb", "a", "ccc", keys = c(2, 1, 3))
xs
lower_bound(xs, 2)
num_by_chr <- ordered_sequence(20, 10, 30, keys = c("b", "a", "c"))
num_by_chr
ordered_sequence()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.