Learn R Programming

unstruwwel (version 0.2.1)

unstruwwel: Detect and Parse Historic Dates

Description

Detect and Parse Historic Dates, e.g., to ISO 8601:2-2019.

Usage

unstruwwel(
  x,
  language = NULL,
  verbose = TRUE,
  scheme = "time-span",
  fuzzify = c(0, 0)
)

Value

A named list of vectors or objects of R6Class.

Arguments

x

Input vector. Either a character vector, or something coercible to one.

language

Language code of the input vector as defined in ISO 639-1. If NULL, language is detected automatically.

verbose

If TRUE, additional diagnostics are printed.

scheme

Scheme code of the output list. Either time-span, iso-format, or object.

fuzzify

A numerical vector of length 2 to extend the interval of approximate or uncertain time periods. This is only applied if scheme == "time-span".

Examples

Run this code
if (interactive()) {
unstruwwel("1. Hälfte 19. Jahrhundert", language = "de")
unstruwwel("circa between 1901 and 1905", language = "en")
}

Run the code above in your browser using DataLab