getbizdays: Obtaining business days using other dates (or month or year)...

View source: R/getbizdays.R

getbizdaysR Documentation

Obtaining business days using other dates (or month or year) as reference

Description

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.

Usage

getbizdays(ref, cal = bizdays.options$get("default.calendar"))

Arguments

ref

a reference which represents a month or year, where the date has to be found.

cal

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.

Examples

# for years
getbizdays(2022:2024, "Brazil/ANBIMA")

# for months
getbizdays("2022-12", "Brazil/ANBIMA")


wilsonfreitas/R-bizdays documentation built on Feb. 14, 2024, 4:17 a.m.