Learn R Programming

ArchaeoPhases (version 2.1.0)

interpolate: Interpolate Between Two Dates

Description

Interpolate Between Two Dates

Usage

interpolate(x, y, ...)

# S4 method for numeric,numeric interpolate(x, y)

# S4 method for EventsMCMC,missing interpolate(x, e1 = 1, e2 = 2)

Arguments

x

A numeric vector giving the output of the MCMC algorithm for the first parameter.

y

A numeric vector giving the output of the MCMC algorithm for the second parameter.

...

Currently not used.

e1, e2

An integer specifying.

Author

N. Frerebeau

Details

For a given output of MCMC algorithm, this function interpolates between to events \(x\) and \(y\) (assuming \(x < y\)).

See Also

Other age-depth modeling tools: bury()

Examples

Run this code
## Coerce to events
eve <- as_events(mcmc_events, calendar = CE(), iteration = 1)
eve <- eve[1:10000, ]

## Interpolate between two events
inter <- interpolate(eve, e1 = 2, e2 = 3)
plot(inter, level = 0.95, interval = "credible")

Run the code above in your browser using DataLab