get_bank_holidays: Get Bank Holiday Calendar

View source: R/get_cal.R

get_bank_holidaysR Documentation

Get Bank Holiday Calendar

Description

Downloads and formats the bank holiday calendar for use with TransXchange data.

Usage

get_bank_holidays(
  url_ew = "https://www.gov.uk/bank-holidays/england-and-wales.ics",
  url_scot = "https://www.gov.uk/bank-holidays/scotland.ics"
)

Arguments

url_ew

url to ics file for England and Wales

url_scot

url to ics file for Scotland

Details

TransXchange records bank holidays by name (e.g. Christmas Day), some UK bank holidays move around, so this function downloads the official bank holiday calendar. The official feed only covers a short period of time so this may not be suitable for converting files from the past / future.

Value

data frame


ITSLeeds/UK2GTFS documentation built on Feb. 14, 2025, 11:20 a.m.