quarter_dates: Quarter start/end dates

View source: R/quarter_dates.R

quarter_datesR Documentation

Quarter start/end dates

Description

Returns either the start or the end date of a given quarter.

Usage

quarter_dates(date, start_end, type)

Arguments

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.

Value

A character object.

See Also

date_type

Examples

quarter_dates("2016q1", "start", "%Y %B %d") # returns "2016 January 01"


moj-analytical-services/mojrap documentation built on July 30, 2023, 4:43 p.m.