ybp2date {pastclim} | R Documentation |
Convert years BP from pastclim to lubridate date, or vice versa
Description
These functions convert between years BP as used by pastclim (negative
numbers going into
the past, positive into the future) and standard
POSIXct
date objects.
Usage
ybp2date(x)
date2ybp(x)
Arguments
x |
a time in years BP using the |
Value
a POSIXct
date object, or a vector
Examples
ybp2date(-10000)
ybp2date(0)
# back and forth
date2ybp(ybp2date(-10000))
[Package pastclim version 2.1.0 Index]