cal_usa_federal: Calendar - USA Federal

Description Usage Arguments Value Holidays Examples

View source: R/cal-usa-federal.R

Description

cal_usa_federal() is a federal calendar for the United States.

Usage

1
cal_usa_federal(since = "1900-01-01", until = "2100-01-01", observed = TRUE)

Arguments

since

[Date(1)]

The lower bound on where to begin looking for the holiday.

until

[Date(1)]

The upper bound on where to end looking for the holiday.

observed

[logical(1)]

If the holiday falls on a weekend, should the observed date be returned? The observed date is the nearest weekday. If FALSE, the exact holiday date is returned.

Value

An rcalendar.

Holidays

Examples

1
2
3
4
5
library(almanac)

cal <- cal_usa_federal()

alma_search("2000-01-01", "2001-01-01", cal)

DavisVaughan/vacation documentation built on May 2, 2020, 11:07 a.m.