getCalDays: Get Calendar Days

View source: R/calendar_fun.R

getCalDaysR Documentation

Get Calendar Days

Description

Using a date range, the available working days type is computed. The beginning and ending date must be on the same year.

Usage

getCalDays(cBegin, cEnd = NA, hol, restday)

Arguments

cBegin

character string representing the start date

The accepted format is "yyyy-mm-dd".

cEnd

character string representing the end date

The accepted format is "yyyy-mm-dd".

hol

a data.frame returned by getHol

restday

character string representing the day of the week defined as the rest day

Value

a data.frame with 12 rows and 8 columns

Each row represents a month while each column represents a man day type. The column names are:

reg

regular day

rd

rest day

lh

legal holiday

sh

special holiday

nh

negotiated holiday

rl

rest day and legal holiday

rs

rest day and special holiday

rn

rest day and negotiated holiday


basilrabi/mansched2 documentation built on May 19, 2023, 9:51 p.m.