longestRun: Find the longest run of holiday given a budget of leave days

Description Usage Arguments Value Examples

Description

Find the longest run of holiday given a budget of leave days

Usage

1
longestRun(startDate, endDate, daysLeave)

Arguments

startDate

Date or international format string. Beginning of your search range.

endDate

Date or international format string. End of your search range.

daysLeave

How many days leave you want to use.

Value

A list with window (the length of holiday) and the available start dates.

Examples

1
2
longestRun("2017-01-01", "2018-01-10", 10)
longestRun("2017-01-01", "2018-01-10", 3)

dougmet/maxholiday documentation built on May 15, 2019, 10:44 a.m.