ybp2date: Convert years BP from pastclim to lubridate date, or vice...

View source: R/ybp2date.R

ybp2dateR 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 pastclim convention of negative numbers indicating years into the past, or a POSIXct date object

Value

a POSIXct date object, or a vector

Examples

ybp2date(-10000)
ybp2date(0)
# back and forth
date2ybp(ybp2date(-10000))


EvolEcolGroup/pastclim documentation built on Nov. 8, 2024, 5:21 a.m.