Description Usage Arguments Details Value See Also Examples
View source: R/as_date_range.R
Convert standard labels for one-quarter
(three-month) periods
or cohorts, such as
such as "<2020 Q2"
, "2020 Q2"
,
"2020 Q3"
to labels that give precise date ranges
such as "(-Inf, 2020-03-31]"
,
"[2020-04-01, 2020-06-30]"
,
"[2020-07-01, 2020-10-31]"
.
1 |
x |
A vector of period or cohort labels. |
The vector of period or cohort labels
x
is typically
created using functions
format_period_quarter
or format_cohort_quarter
.
A factor the same length as x
.
as_date_range_year
,
as_date_range_multi
,
as_date_range_custom
,
as_date_range_month
.
1 2 | x <- c("<2010 Q4", "2010 Q4", "2011 Q1")
as_date_range_quarter(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.