polish_years | R Documentation |
Pick and polish the year interval (start and end years) from a time field which is of the form 1800 or 1823-1845 etc.
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 )
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 |
data.frame with the fields 'start' and 'end'
Leo Lahti leo.lahti@iki.fi
See citation("bibliographica")
## Not run: df <- polish_years(c("1746", "1745-1750"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.