is_jholiday: Is x a public holidays in Japan?

is_jholidayR Documentation

Is x a public holidays in Japan?

Description

\Sexpr[results=rd, stage=render]{lifecycle::badge("experimental")}

Whether it is a holiday defined by Japanese law (enacted in 1948)

Usage

is_jholiday(date)

Arguments

date

a vector of POSIXt, numeric or character objects

Details

Holiday information refers to data published as of December 21, 2020. Future holidays are subject to change.

Value

TRUE if x is a public holidays in Japan, FALSE otherwise.

Examples

is_jholiday("2021-01-01")
#> [1] TRUE
is_jholiday("2018-12-23")
#> [1] TRUE
is_jholiday("2019-12-23")
#> [1] FALSE

zipangu documentation built on Dec. 9, 2022, 9:07 a.m.