| as_phases | R Documentation | 
Coerce to Phases
as_phases(from, ...)
## S4 method for signature 'matrix'
as_phases(
  from,
  calendar = NULL,
  start = seq(from = 1, to = ncol(from), by = 2),
  stop = start + 1,
  names = NULL,
  iteration = NULL
)
## S4 method for signature 'data.frame'
as_phases(
  from,
  calendar,
  start = seq(from = 1, to = ncol(from), by = 2),
  stop = start + 1,
  names = NULL,
  iteration = NULL
)
| from | from An object to be coerced. | 
| ... | Currently not used. | 
| calendar | A  | 
| start | An  | 
| stop | An  | 
| names | A  | 
| iteration | A length-one  | 
A PhasesMCMC object.
A. Philippe, M.-A. Vibet, N. Frerebeau
Other read methods: 
as_coda(),
as_events(),
check,
read_bcal(),
read_chronomodel,
read_oxcal()
## Coerce to phases
(pha <- as_phases(mcmc_phases, start = c(1, 3), calendar = CE(), iteration = 1))
summary(pha, calendar = CE())
## Plot phases
plot(pha)
plot(pha, succession = "hiatus")
plot(pha, succession = "transition")
## Compute phases from events
(eve <- as_events(mcmc_events, calendar = CE(), iteration = 1))
## Compute min-max range for all chains
pha1 <- phases(eve)
summary(pha1, calendar = CE())
## Compute min-max range by group
pha2 <- phases(eve, groups = list(phase_1 = c(1, 3), phase_2 = c(2, 4)))
summary(pha2, calendar = CE())
zz <- pha@.Data
head(zz)
head(zz[, 1, ])
head(pha)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.