Description Usage Arguments Details Value See Also Examples
View source: R/as_date_range.R
Convert standard labels for multi-year periods
of equal width
such as "<2020"
, "2020-2025"
,
"2025-2030"
to labels that give precise date ranges
such as "(-Inf, 2020-06-30]"
,
"[2020-07-01, 2025-06-30]"
,
"[2025-07-01, , 2030-06-30]"
.
1 | as_date_range_multi(x, month_start = "Jan")
|
x |
A vector of period or cohort labels. |
month_start |
An element of |
The vector of period or cohort labels
x
is typically
created using functions
format_period_multi
or format_cohort_multi
.
A factor the same length as x
.
as_date_range_year
,
as_date_range_custom
,
as_date_range_quarter
,
as_date_range_month
1 2 3 | x <- c("<2010", "2010-2015", "2015-2020")
as_date_range_multi(x)
as_date_range_multi(x, month_start = "Jul")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.