joeroe / era

R package for year-based time scales

Home Page:https://era.joeroe.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Conversion between eras with NA units

joeroe opened this issue · comments

yr_transform() currently throws an error if either the source or destination era has an NA unit, following the R convention that NA == NA is NA.

It might not be necessary to be this strict, for example to allow transformations between era("bp") and era("bce"), and just warn that there is an assumption that the units are comparable.