powered by
Get First / Last Day of a Quarter
first_of_quarter(x)# S3 method for default first_of_quarter(x)last_of_quarter(x)# S3 method for default last_of_quarter(x)
# S3 method for default first_of_quarter(x)
last_of_quarter(x)
# S3 method for default last_of_quarter(x)
a Date
Anything that can be coerced to a date with base::as.Date()
base::as.Date()
first_of_quarter("2016-06-04") last_of_quarter("2016-06-04")
Run the code above in your browser using DataLab