imanuelcostigan / fmdates

Financial Market Date Calculations
https://imanuelcostigan.github.io/fmdates/
10 stars 5 forks source link

Error subsetting JointCalendar with logical vector #3

Closed imanuelcostigan closed 7 years ago

imanuelcostigan commented 7 years ago

Expected behaviour

library(fmdates)
syny <- c(AUSYCalendar(), USNYCalendar())
syny[c(TRUE, FALSE)]
#> <JointCalendar> AUSY
#>    TZ: Australia/Sydney
#>    Join rule: all

Actual behaviour

library(fmdates)
syny <- c(AUSYCalendar(), USNYCalendar())
syny[c(TRUE, FALSE)]
#> Error: i is not a number (a length one numeric vector).