number_kyureki.month {jcalendaR} | R Documentation |
jcalendaR-utils
Description
This is a set of utility functions related to the Kyureki calendar. 'number_kyureki.month()' checks how many days there were in a month by specifying the number of years and months in the Kyureki calendar. 'existence_leap.month()' checks if there was a leap month in a year by entering the number of years in the Kyureki calendar. 'era.name()' will output the era names of the corresponding year in this package.
Usage
number_kyureki.month(
kyureki.year,
kyureki.month,
era = c("south", "north", "east", "heishi", "kyoto", "non")
)
existence_leap.month(
kyureki.year,
existence = c("logical", "number"),
era = c("south", "north", "east", "heishi", "kyoto", "non")
)
era.name(era = c("south", "north", "east", "heishi", "kyoto"))
Arguments
kyureki.year |
The number of years in the Kyureki calendar to check. |
kyureki.month |
The number of strings of months in the Kyureki calendar to check. |
era |
Whether the Gengo of the Japanese calendar is the Southern or Northern dynasty system, the system used in the Kanto region, the Heike, and Kyoto respectively, or no era names. |
existence |
Whether to return the existence of a leap month as a theoretical type or as a leap month number. |
Value
* 'number_kyureki.month()' returns a numeric vector.
* 'existence_leap.month()' returns a numeric vector or logical vector.
* 'era.name()' returns a string vector that the era names of the corresponding year in this package.
References
The data for the Kyureki calendar and era names refer to the following data.
manakai/data-locale https://github.com/manakai/data-locale
Examples
existence_leap.month("\u660e\u6cbb2")
number_kyureki.month("\u660e\u6cbb2", 1)