View source: R/30-api-flexseq-core.R
| c.flexseq | R Documentation |
Concatenate Sequences
## S3 method for class 'flexseq'
c(..., recursive = FALSE)
... |
|
recursive |
Unused; must be |
c() is supported for flexseq and returns a new concatenated flexseq.
For priority_queue, ordered_sequence, and interval_index, c() is not
supported because concatenation can violate structure-specific invariants.
Cast first with as_flexseq() when sequence-style concatenation is intended,
noting that this drops ordering and priority metadata.
A concatenated flexseq.
x <- flexseq("a", "b")
y <- flexseq("c", "d")
c(x, y)
q1 <- priority_queue("a", priorities = 2)
q2 <- priority_queue("b", priorities = 1)
try(c(q1, q2))
c(as_flexseq(q1), as_flexseq(q2))
o1 <- ordered_sequence("a", keys = 1)
o2 <- ordered_sequence("b", keys = 2)
try(c(o1, o2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.