wareki2AD: Conversion from Japanese imperial year to Anno Domini

Description Usage Arguments Details Value Author(s) Examples

Description

wareki2AD calculates a year for Anno Domini from Japanese imperial year, which is widely used in official statistics and documents in Japan.

Usage

1
wareki2AD(year)

Arguments

year

vector of Japanese calender year as strings.

Details

year should include numeric strings as a halfwidth (hankaku) forms (aka ACSII). If you have fullwidth (zenkaku) figures in the numeric part of year, you need to convert them to halfwidth characters before using wareki2AD.

Noted that the supported the names of an era, “gengo”, inlcude “Meiji”, “Taisho”, “Showa”, and “Heisei” only.

Value

character

Author(s)

Susumu Tanimura aruminat@gmail.com

Examples

1
2
3
4
5
## Not run: 
yr <- paste0(intToUtf8(c(24179,25104)), 20, intToUtf8(24180))
wareki2AD(yr)

## End(Not run)

Nippon documentation built on May 2, 2019, 1:03 p.m.