r-dbi / issues

Analyze responses to issues on GitHub repositories
3 stars 1 forks source link

feat: use business days #5

Open maelle opened 6 months ago

maelle commented 6 months ago

why we should add 1:

bizdays::load_rmetrics_calendars(year = 2013:2024)
#> Calendar Rmetrics/LONDON loaded
#> Calendar Rmetrics/NERC loaded
#> Calendar Rmetrics/NYSE loaded
#> Calendar Rmetrics/TSX loaded
#> Calendar Rmetrics/ZURICH loaded
bizdays::bizdays("2023-01-02", "2023-01-02", cal = "Rmetrics/ZURICH")
#> [1] -1
bizdays::bizdays("2023-01-02", "2023-01-03", cal = "Rmetrics/ZURICH")
#> [1] 0
bizdays::bizdays("2023-01-02", "2023-01-04", cal = "Rmetrics/ZURICH")
#> [1] 1

Created on 2024-04-16 with reprex v2.1.0