bd_breaks: Date breaks corresponding to the first trading day of standard periods
Description
The periods are:
years
quarters
months
weeks
days
Usage
bd_breaks(business.dates, n.max = 5)
Arguments
business.dates
a vector of Date objects, sorted ascending
n.max
the maximum number of breaks to return
Value
returns a function function: max => [date range] => breaks that generates the breaks
for the interval with the largest number of breaks less than n.max