Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 2017 年的天数列表,我必须删除日期,不必计算
days_2016 <- seq(start_day, end_day, by="days") holidays <- seq(start_h, end_h, by="days") work_days <-
如何在没有假期的情况下制作清单?
就像 docendo 说的:
days_2016 <- seq(as.Date("2016-01-01"), as.Date("2016-12-31"), by = "days") holidays <- seq(as.Date("2016-05-01"), as.Date("2016-06-30"), by = "days") workdays <- days_2016[!days_2016 %in% holidays]