View source: R/get_china_holidays.R
get_china_holidays | R Documentation |
Retrieves the list of official public holidays in China for a specific year using the Nager.Date public holidays API. This function returns a tibble containing the date of the holiday, the name in the local language (Chinese), and the English name. It is useful for academic, planning, and data analysis purposes. The information is retrieved directly from the Nager.Date API and reflects the current status of holidays for the requested year. The field names returned are consistent with the API structure.
get_china_holidays(year)
year |
An integer indicating the year (e.g., 2024 or 2025). |
A tibble with the following columns:
date
: Date of the holiday (class Date
)
local_name
: Holiday name in the local language (Chinese)
name
: Holiday name in English
Data obtained from the Nager.Date API: https://date.nager.at/
get_china_holidays(2024)
get_china_holidays(2025)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.