duration_spanning_seq | R Documentation |
duration_spanning_seq()
generates a regular sequence along the span of x
,
i.e. along [min(x), max(x)]
.
duration_spanning_seq(x)
x |
A duration vector. |
Missing values are automatically removed before the sequence is generated.
If you need more precise sequence generation, call range()
and seq()
directly.
A sequence along [min(x), max(x)]
.
x <- duration_days(c(1, 5, 2))
duration_spanning_seq(x)
# Missing values are removed before the sequence is created
x <- vctrs::vec_c(NA, x, NA)
duration_spanning_seq(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.