Learn R Programming

ArchaeoPhases (version 2.1.0)

duration: Phase Duration

Description

Phase Duration

Usage

duration(x, y, ...)

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

# S4 method for PhasesMCMC,missing duration(x)

Arguments

x, y

A numeric vector. If y is missing, x must be an PhasesMCMC object.

...

Currently not used.

Author

A. Philippe, M.-A. Vibet, N. Frerebeau

See Also

Other phase tools: phases()

Examples

Run this code
## Coerce to phases
pha <- as_phases(mcmc_phases, start = c(1, 3), calendar = CE(), iteration = 1)

## Compute phase duration
dur <- duration(pha)
summary(dur)

Run the code above in your browser using DataLab