bce_ce: Translate a Dating Value from iDAI.field to a Positive or...

View source: R/simplify_utilities.R

bce_ceR Documentation

Translate a Dating Value from iDAI.field to a Positive or Negative Number

Description

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.

Usage

bce_ce(list)

Arguments

list

A named list containing at least the following elements:

inputYear

A numerical value representing a year.

inputType

A character string indicating the type of dating for the inputYear value. Must be one of "bce", "ce", or "bp".

Value

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.

See Also

fix_dating()

Examples

## Not run: 
list <- list(inputYear = 100, inputType = "bce")
bce_ce(list)

## End(Not run)

lsteinmann/idaifieldR documentation built on April 3, 2025, 2:06 p.m.