polish_years: Polish Years

View source: R/polish_years.R

polish_yearsR Documentation

Polish Years

Description

Pick and polish the year interval (start and end years) from a time field which is of the form 1800 or 1823-1845 etc.

Usage

polish_years(
  x,
  start_synonyms = NULL,
  end_synonyms = NULL,
  verbose = TRUE,
  check = FALSE,
  min.year = -3000,
  max.year = as.numeric(format(Sys.time(), "%Y")) + 50
)

Arguments

x

year field (a vector)

start_synonyms

Synonyme table for start year

end_synonyms

Synonyme table for end year

verbose

verbose

check

If true, remove entries (replace by NA) where start > end

min.year

Minimum year accepted

max.year

Maximum year accepted

Value

data.frame with the fields 'start' and 'end'

Author(s)

Leo Lahti leo.lahti@iki.fi

References

See citation("bibliographica")

Examples

## Not run: df <- polish_years(c("1746", "1745-1750"))

rOpenGov/bibliographica documentation built on April 10, 2022, 8:51 p.m.