convert_jyear {zipangu} | R Documentation |
Convert Japanese imperial year to Anno Domini
Description
Usage
convert_jyear(jyear, legacy = FALSE)
Arguments
jyear |
Japanese imperial year (jyear). Kanji or Roman character |
legacy |
A logical to switch converter. If |
Examples
convert_jyear("R1") #> [1] 2019 convert_jyear("Heisei2") #> [1] 1990 convert_jyear("\u5e73\u6210\u5143\u5e74") #> [1] 1989 convert_jyear(c("\u662d\u548c10\u5e74", "\u5e73\u621014\u5e74")) #> [1] 1935 2002 convert_jyear(kansuji2arabic_all("\u5e73\u6210\u4e09\u5e74")) #> [1] 1991
[Package zipangu version 0.3.2 Index]