# NOT RUN {
from <- as.Date("2019-01-01") + rep(0, 10)
to <- as.Date("2020-01-15") + seq(0, 9)
CountWorkDays(from, to)
x <- seq(from[1], from[1]+11, "days")
data.frame(
date = x,
day = Format(x, fmt="ddd"))
CountWorkDays(from = min(x), to = max(x), holiday = c("2019-01-06", "2019-01-07"))
# }
Run the code above in your browser using DataLab