View source: R/quarter_dates.R
quarter_dates | R Documentation |
Returns either the start or the end date of a given quarter.
quarter_dates(date, start_end, type)
date |
A quarter with the year first and then the quarter number, e.g. "2020q1". |
start_end |
Either "start" or "end" to select the start or end date of the quarter. |
type |
Specifies the format of the date, using standard R date types. |
A character object.
date_type
quarter_dates("2016q1", "start", "%Y %B %d") # returns "2016 January 01"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.