polish_years: Polish Years

Description Usage Arguments Value Author(s) References Examples

View source: R/polish_years.R

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

1
2
3
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 and Niko Ilomaki [email protected]

References

See citation("bibliographica")

Examples

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

rOpenGov/bibliographica documentation built on Nov. 19, 2018, 10:55 a.m.