n_weekdays: return number of weekdays

View source: R/calc_mode.R

n_weekdaysR Documentation

return number of weekdays

Description

return the number of weekdays between two days, excluding weekends (obviously) and holidays (user defined)

Usage

n_weekdays(from, to, holidays)

Arguments

from

Date. Date to count from (inclusive)

to

Date. Date to count to (inclusive)

holidays

you can get this (for England) with get_holidays

Value

integer. Number of weekdays between two dates


CDU-data-science-team/pharmacyReporting documentation built on March 24, 2023, 2:32 p.m.