Learn R Programming

dateutils (version 0.1.5)

last_in_quarter: Last date in the week

Description

Return the latest date in the quarter fop the values in `dates`

Usage

last_in_quarter(dates)

Arguments

dates

A sequence of dates in `as.Date()` format

Value

Last day of the quarter

Examples

Run this code
# NOT RUN {
dates <- seq.Date(from = as.Date("2020-09-11"),
                  by = "day", length.out = 10)
last_in_quarter(dates)
# }

Run the code above in your browser using DataLab