noWeekDays | R Documentation |
Returns integer sum of number of weekdays in timespan from a to b
noWeekDays(sd, ed, weekend = c("Saturday", "Sunday"))
sd |
start date (as.Date) of timespan |
ed |
end date (as.Date) of timespan |
weekend |
vector of text names of weekend days, defaults to c("Saturday", "Sunday") |
noWeekDays integer
noWeekDays(as.Date("1969-01-01", "2012-12-21")) noWeekDays(as.Date("2016-01-21", "2020-01-21", weekend=c("Sunday")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.