get_china_holidays: Get Official Public Holidays in China for a Given Year

View source: R/get_china_holidays.R

get_china_holidaysR Documentation

Get Official Public Holidays in China for a Given Year

Description

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.

Usage

get_china_holidays(year)

Arguments

year

An integer indicating the year (e.g., 2024 or 2025).

Value

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

Source

Data obtained from the Nager.Date API: https://date.nager.at/

Examples

get_china_holidays(2024)
get_china_holidays(2025)


ChinAPIs documentation built on Aug. 27, 2025, 1:08 a.m.