R bizdays::create.calendar Error in seq.int(0, to0 - from, by) : 'to' must be a finite number

122 views Asked by At

Trying to use bizdays::create.calendar I am getting the following error

Error in seq.int(0, to0 - from, by) : 'to' must be a finite number

my holiday vector looks like

> arsHol
            V1
1   2018-01-01
2   2018-01-15
3   2018-02-12
4   2018-02-13
5   2018-02-19
6   2018-03-29
7   2018-03-30
8   2018-04-02

and my code is

arsHol
arsHol1<-as.Date.character(arsHol,format="%Y-%m-%d")
arsCal<-bizdays::create.calendar("arsCal",holidays = arsHol1,weekdays=c("saturday", "sunday"))
0

There are 0 answers