list_holidays_and_weekends: Create a vector of 24 hour Intervals 'lubridate' from...

Description Usage Arguments Value Author(s) Examples

Description

This function is used to generate a vector of holiday and weekend Interval objects as defined by lubridate. It requires an active internet connection as it makes use of the Enrico service available at http://www.kayaposoft.com/enrico/ to determine holidays for a given locality. This is used to exclude weekends and holidays from Duration and Period calculations.

Usage

1
2
3
list_holidays_and_weekends(from_date = "01-01-2011", to_date = "01-01-2111",
  country_filter = "usa", region_filter = "Washington",
  tz = "America/Los_Angeles")

Arguments

from_date

A character string specifying the start date of the Interval vector in the format %m-%d-%Y. Defaults to 01-01-2011

to_date

A character string specifying the stop date of the Interval vector in the format %m-%d-%Y. Defaults to 01-01-2111.

country_filter

A character string specifying country of the holidays as required by the Enrico service. Defaults to 'usa'.

region_filter

A character string specifying region, of the country, of the holidays as required by the Enrico service. Defaults to 'Washington'.

Value

A vector of lubridate Interval objects.

Author(s)

Joe Mienko, mienkoja@uw.edu

Examples

1

mienkoja/oliveR documentation built on May 6, 2019, 6:01 p.m.