IsHoliday: Check for Polish holidays

Description Usage Arguments Value Examples

View source: R/holidays.R

Description

Checks whether given dates are weekends or holidays

Usage

1
IsHoliday(dates, include_weekends = TRUE)

Arguments

dates

vector of Dates of object coercible by as.Date

include_weekends

logical, whether or not weekends should be included

Value

logical vector of the same length as dates, TRUE when given date is holiday (or weekend), FALSE otherwise. Some holidays could fall on weekends.

Examples

1
2
IsHoliday("2020-04-12")
IsHoliday("2015-12-31")

bartekch/bchUtilities documentation built on May 7, 2019, 10:56 a.m.