powered by
Retrieves the list of official public holidays in China for a specific year using the Nager.Date public holidays API.
get_china_holidays(year)
A tibble with the following columns:
date: Date of the holiday (class Date)
date
Date
local_name: Holiday name in the local language
local_name
name: Holiday name in English
name
Returns NULL if the API request fails.
NULL
An integer indicating the year (e.g., 2024).
if (interactive()) { get_china_holidays(2024) }
Run the code above in your browser using DataLab