View source: R/simplify_utilities.R
bce_ce | R Documentation |
This function takes a list containing a numerical year and a type of dating (either "bce", "ce", or "bp") and returns the year as a number with a positive or negative sign indicating whether the year is BCE or CE. If the dating type is "bp", the year is subtracted from 1950 to get a BCE year.
bce_ce(list)
list |
A named list containing at least the following elements:
|
A numerical value representing the year, with a negative
sign indicating BCE and a positive sign indicating CE. The warning
attribute carries over possible warnings.
fix_dating()
## Not run:
list <- list(inputYear = 100, inputType = "bce")
bce_ce(list)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.