noWeekDays: noWeekDays

View source: R/r4moves.R

noWeekDaysR Documentation

noWeekDays

Description

Returns integer sum of number of weekdays in timespan from a to b

Usage

noWeekDays(sd, ed, weekend = c("Saturday", "Sunday"))

Arguments

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")

Value

noWeekDays integer

Examples

noWeekDays(as.Date("1969-01-01", "2012-12-21"))
noWeekDays(as.Date("2016-01-21", "2020-01-21", weekend=c("Sunday")))

hlinak/R-for-MOVES documentation built on Jan. 31, 2023, 2:03 p.m.