powered by
A yr object represents years with an associated calendar era or time scale.
yr
yr(x = numeric(), era = character())
A yr (era_yr) object.
era_yr
A numeric vector of years.
The calendar era used by x. Either:
x
A string matching one of the standard era labels defined in eras()
eras()
An era object constructed with era()
era
era()
Other years with era functions: yr_era(), yr_transform()
yr_era()
yr_transform()
# The R Age yr(1993:2020, "CE") # A bad movie yr(10000, "BC")
Run the code above in your browser using DataLab