Description Usage Arguments Value See Also Examples
View source: R/date_to_period.R
Assign dates to one-quarter (three-month) periods Quarters are defined as follows:
| Quarter | Start | End | 
| Q1 | 1 January | 31 March | 
| Q2 | 1 April | 30 June | 
| Q3 | 1 July | 30 September | 
| Q4 | 1 October | 31 December | 
| 1 | 
| date | Dates of events or measurements.
A vector of class  | 
A character vector with the same length as date.
The output from date_to_period_quarter
is often processed further using format_period_quarter.
Other functions for creating periods from dates are
date_to_period_year and
and date_to_period_month.
Other functions for creating one-quarter units
from dates are
date_to_age_quarter,
date_to_cohort_quarter,
and date_to_triangle_quarter.
The interface for date_to_period_quarter is identical
to that of date_to_cohort_quarter.
| 1 2 3 | date_to_period_quarter(date = c("2024-03-27",
                                "2020-01-03",
                                "2022-11-09"))
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.