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.

Usage

get_china_holidays(year)

Arguments

year

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

Value

A tibble with the following columns:

  • date: Date of the holiday (class Date)

  • local_name: Holiday name in the local language

  • name: Holiday name in English

Returns NULL if the API request fails.

Source

https://date.nager.at/

Examples

if (interactive()) {
  get_china_holidays(2024)
}


ChinAPIs documentation built on Feb. 12, 2026, 5:08 p.m.