Skip to contents

Converts between BP (Before Present), CE (Common Era) and b2k (before 2000) time scales.

Usage

BP_to_CE(object)

BP_to_b2k(object)

CE_to_BP(object)

CE_to_b2k(object)

b2k_to_BP(object)

b2k_to_CE(object)

is_BP(object)

is_CE(object)

is_b2k(object)

# S4 method for MCMC
is_BP(object)

# S4 method for PhasesMCMC
is_BP(object)

# S4 method for CumulativeEvents
is_BP(object)

# S4 method for ActivityEvents
is_BP(object)

# S4 method for OccurrenceEvents
is_BP(object)

# S4 method for ProxyRecord
is_BP(object)

# S4 method for MCMC
is_CE(object)

# S4 method for PhasesMCMC
is_CE(object)

# S4 method for CumulativeEvents
is_CE(object)

# S4 method for ActivityEvents
is_CE(object)

# S4 method for OccurrenceEvents
is_CE(object)

# S4 method for ProxyRecord
is_CE(object)

# S4 method for MCMC
is_b2k(object)

# S4 method for PhasesMCMC
is_b2k(object)

# S4 method for CumulativeEvents
is_b2k(object)

# S4 method for ActivityEvents
is_b2k(object)

# S4 method for OccurrenceEvents
is_b2k(object)

# S4 method for ProxyRecord
is_b2k(object)

# S4 method for numeric
BP_to_CE(object)

# S4 method for matrix
BP_to_CE(object)

# S4 method for array
BP_to_CE(object)

# S4 method for MCMC
BP_to_CE(object)

# S4 method for PhasesMCMC
BP_to_CE(object)

# S4 method for numeric
CE_to_BP(object)

# S4 method for matrix
CE_to_BP(object)

# S4 method for array
CE_to_BP(object)

# S4 method for MCMC
CE_to_BP(object)

# S4 method for PhasesMCMC
CE_to_BP(object)

# S4 method for numeric
CE_to_b2k(object)

# S4 method for matrix
CE_to_b2k(object)

# S4 method for array
CE_to_b2k(object)

# S4 method for MCMC
CE_to_b2k(object)

# S4 method for PhasesMCMC
CE_to_b2k(object)

# S4 method for numeric
b2k_to_BP(object)

# S4 method for matrix
b2k_to_BP(object)

# S4 method for array
b2k_to_BP(object)

# S4 method for ProxyRecord
b2k_to_BP(object)

# S4 method for numeric
b2k_to_CE(object)

# S4 method for matrix
b2k_to_CE(object)

# S4 method for array
b2k_to_CE(object)

# S4 method for ProxyRecord
b2k_to_CE(object)

Arguments

object

An object (typically an MCMC object).

Value

  • BP_to_CE(), BP_to_b2k(), CE_to_BP(), CE_to_b2k(), b2k_to_CE() and b2k_to_BP() return an object of the same class as object.

  • is_BP(), is_CE(), is_b2k() return a logical scalar.

An object of the same sort as object with a new time scale.

Note

There is no year \(0\) in BCE/CE scale.

See also

Other time scales: elapse()

Author

N. Frerebeau

Examples

## Coerce to MCMC
eve <- as_events(events, calendar = "CE", iteration = 1)

## Plot events
## BP
eve_BP <- CE_to_BP(eve)
plot(eve_BP)
#> Picking joint bandwidth of 15.1


## CE
eve_CE <- BP_to_CE(eve_BP)
plot(eve_CE)
#> Picking joint bandwidth of 15.1


## Elapsed origin
eve_elapse <- elapse(eve, origin = 4)
plot(eve_elapse)
#> Picking joint bandwidth of 20.3