jpera_to_date: get Date type from Japanese Era name

View source: R/calendar.R

jpera_to_dateR Documentation

get Date type from Japanese Era name

Description

Work like as.Date but Japanese Era can be allowed, which is represented as %E in format. Default formats are "R1-04-03" or "R1.04.03".

Usage

jpera_to_date(str, tryFormats = c("%E-%m-%d", "%E.%m.%d"), ...)

Arguments

str

target character or sequence of character.

tryFormats

format of str for reading JP era and other date data. %E mean era. The other options follows as.Date function.

...

arguments passing to as.Date function

Value

Date class


hmito/hmRLib documentation built on March 13, 2024, 9:41 p.m.