jymd: Parse dates with *y*ear, *mo*nth, *d*ay, and Japanese nengo...

Description Usage Arguments Note

View source: R/jymd.R

Description

An wrapper of lubridate::ymd() to enable paring Japanese gengo. Meiji, Taisyo, Syowa, Heisei, and Reiwa can be recognized.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
jymd(..., quiet = FALSE, tz = "Asia/Tokyo",
  locale = Sys.getlocale("LC_TIME"), truncated = 0)

jymd_h(..., quiet = FALSE, tz = "Asia/Tokyo",
  locale = Sys.getlocale("LC_TIME"), truncated = 0)

jymd_hm(..., quiet = FALSE, tz = "Asia/Tokyo",
  locale = Sys.getlocale("LC_TIME"), truncated = 0)

jymd_hms(..., quiet = FALSE, tz = "Asia/Tokyo",
  locale = Sys.getlocale("LC_TIME"), truncated = 0)

Arguments

...

a character or numeric vector of suspected dates

quiet

logical. When TRUE function evalueates without displaying customary messages.

tz

Time zone indicator. If NULL a Date object is returned. Otherwise a POSIXct with time zone attribute set to tz.

locale

locale to be used, see locales. On linux systems you can use system("locale -a") to list all the installed locales.

truncated

integer. Number of formats that can be truncated.

Note

tz argument has default value as "Asia/Tokyo" unlike NULL in lubridate::ymd().


fmsan51/jlubridate documentation built on Nov. 4, 2019, 12:45 p.m.