尝试使用 bizdays::create.calendar 我收到以下错误
seq.int(0, to0 - from, by) 中的错误:'to' 必须是有限数
我的假期矢量图看起来像
> 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
我的代码是
arsHol
arsHol1<-as.Date.character(arsHol,format="%Y-%m-%d")
arsCal<-bizdays::create.calendar("arsCal",holidays = arsHol1,weekdays=c("saturday", "sunday"))