first_of_yq {dint} R Documentation

## Get First or Last Day of Quarter From Year and Quarter

### Description

Get First or Last Day of Quarter From Year and Quarter

### Usage

first_of_yq(x, q = NULL)

last_of_yq(x, q = NULL)


### Arguments

 x Two integer (vectors). q is optional and the interpretation of x will depend on whether q is supplied or not: if only x is supplied, x will be passed to as_date_yq() (e.g. x = 20161 means first quarter of 2016) if x and q are supplied, x is interpreted as year and q as quarter. q Two integer (vectors). q is optional and the interpretation of x will depend on whether q is supplied or not: if only x is supplied, x will be passed to as_date_yq() (e.g. x = 20161 means first quarter of 2016) if x and q are supplied, x is interpreted as year and q as quarter.

### Value

a Date

first_of_quarter()