Learn R Programming

lares (version 5.1.4)

holidays: Holidays in your Country

Description

This function lets the user automatically scrap holiday dates from any country and year within +- 5 years. Thanks to timeanddate.com!

Usage

holidays(countries = "Venezuela", years = year(Sys.Date()))

Value

data.frame with holidays data for given countries and years.

Arguments

countries

Character or vector. For which country(ies) should the holidays be imported?

years

Character or vector. For which year(s) do you wish to import holiday dates?

See Also

Other Data Wrangling: balance_data(), categ_reducer(), cleanText(), date_cuts(), date_feats(), formatNum(), impute(), left(), normalize(), ohe_commas(), ohse(), removenacols(), replaceall(), textFeats(), textTokenizer(), vector2text(), year_month()

Other Feature Engineering: date_feats(), ohse()

Other Scrapper: filesGD(), get_mp3(), gtrends_related(), ip_data(), readGS(), splot_etf(), stocks_quote()

Other One Hot Encoding: date_feats(), ohe_commas(), ohse()

Examples

Run this code
# \donttest{
holidays(countries = "Argentina")
holidays(countries = c("Argentina", "Venezuela"), years = c(2019, 2020))
# }

Run the code above in your browser using DataLab