hiatus {ArchaeoPhases} | R Documentation |
Hiatus Between Two Dates
Description
Tests for the existence of a hiatus between two parameters.
Usage
hiatus(x, y, ...)
## S4 method for signature 'numeric,numeric'
hiatus(x, y, level = 0.95)
## S4 method for signature 'EventsMCMC,missing'
hiatus(x, level = 0.95)
## S4 method for signature 'PhasesMCMC,missing'
hiatus(x, level = 0.95)
Arguments
x , y |
A |
... |
Currently not used. |
level |
A length-one |
Details
Finds if a gap exists between two dates and returns the longest interval
that satisfies
The hiatus between two successive phases is the longest interval that
satisfies
(this assumes that the phases are in temporal order constraint).
Value
The endpoints of the hiatus between successive events/phases
(at a given level
).
Methods (by class)
-
hiatus(x = numeric, y = numeric)
: Returns a length-threenumeric
vector (terminal times and hiatus duration, if any). -
hiatus(x = EventsMCMC, y = missing)
: Returns aTimeRange
object. -
hiatus(x = PhasesMCMC, y = missing)
: Returns aTimeRange
object.
Author(s)
A. Philippe, M.-A. Vibet, N. Frerebeau
See Also
Other time ranges:
boundaries()
,
transition()
Examples
## Coerce to MCMC
eve <- as_events(mcmc_events, calendar = CE(), iteration = 1)
eve <- eve[1:10000, ]
## Test for anteriority
older(eve)
## Test for hiatus
hia <- hiatus(eve)
as.data.frame(hia)