R/getbizdays.R
getbizdays.Rd
Calculates the number of business days for some specific periof of a year
or a month.
getbizdays
returns the number of business days according to a
reference than can be another date, a month or an year.
getbizdays(ref, cal = bizdays.options$get("default.calendar"))
a reference which represents a month or year, where the date has to be found.
the calendar's name
getbizdays
returns the number of working days according to a reference
that can be a month or an year.
This reference can be passed as a character vector representing months
or years, or as a numeric vector representing years. The ISO format must be
used to represent years or months with character vectors.
# for years
getbizdays(2022:2024, "Brazil/ANBIMA")
#> [1] 251 249 253
# for months
getbizdays("2022-12", "Brazil/ANBIMA")
#> [1] 22