minDaysLeave: Find the best time to take a fixed length holiday

Description Usage Arguments Value Examples

Description

Find the best time to take a fixed length holiday

Usage

1
minDaysLeave(startDate, endDate, window)

Arguments

startDate

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

endDate

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

window

The number of consecutive days holiday you would like. E.g. 3 weeks would be 21 (or 23 if you want an extra weekend)

Value

A list with the minimum days needed and a vector of potential start dates

Examples

1
minDaysLeave("2017-01-01", "2018-01-10", 23)

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