inst/doc/bizdays.R

## ----message=TRUE, warning=TRUE-----------------------------------------------
library(bizdays)
bizdays("2022-02-01", "2022-02-28", "Brazil/ANBIMA")

## -----------------------------------------------------------------------------
calendars()

## -----------------------------------------------------------------------------
bizdays("2022-02-01", "2022-02-28", "actual")

## -----------------------------------------------------------------------------
calendars()[["Brazil/B3"]]

## -----------------------------------------------------------------------------
load_rmetrics_calendars(2000:2030)
calendars()

## -----------------------------------------------------------------------------
bizdays("2022-02-01", "2022-02-28", "Rmetrics/NYSE")

## -----------------------------------------------------------------------------
bizdays("2022-02-01", "2022-02-28", "Brazil/ANBIMA")

## -----------------------------------------------------------------------------
getbizdays("2022-01", "Brazil/ANBIMA")

## -----------------------------------------------------------------------------
is.bizday(c("2022-02-01", "2022-02-05"), "Brazil/ANBIMA")

## -----------------------------------------------------------------------------
following(c("2022-02-01", "2022-02-05"), "Brazil/ANBIMA")
preceding(c("2022-02-01", "2022-02-05"), "Brazil/ANBIMA")

## -----------------------------------------------------------------------------
bizseq("2022-02-01", "2022-02-05", "Brazil/ANBIMA")

## -----------------------------------------------------------------------------
add.bizdays("2022-02-01", 0:5, "Brazil/ANBIMA")

## -----------------------------------------------------------------------------
getdate("first bizday", "2022-01", "Brazil/ANBIMA")

## -----------------------------------------------------------------------------
getdate("180th day", "2022", "Brazil/ANBIMA")

Try the bizdays package in your browser

Any scripts or data that you put into this service are public.

bizdays documentation built on Jan. 22, 2023, 1:08 a.m.