Coerce
Usage
as_events(from, ...)
as_phases(from, ...)
as_rece(from, ...)
# S4 method for matrix
as_events(from, calendar = c("BP", "CE", "b2k"), iteration = NULL)
# S4 method for data.frame
as_events(from, calendar = c("BP", "CE", "b2k"), iteration = NULL)
# S4 method for matrix
as_phases(
from,
start = seq(from = 1, to = ncol(from), by = 2),
stop = start + 1,
names = NULL,
calendar = c("BP", "CE", "b2k"),
iteration = NULL
)
# S4 method for data.frame
as_phases(
from,
start = seq(from = 1, to = ncol(from), by = 2),
stop = start + 1,
names = NULL,
calendar = c("BP", "CE", "b2k"),
iteration = NULL
)
# S4 method for matrix
as_rece(from, calendar = c("BP", "CE", "b2k"), age = 1)
# S4 method for data.frame
as_rece(from, calendar = c("BP", "CE", "b2k"), age = 1)
Arguments
- from
from An object to be coerced.
- ...
Currently not used.
- calendar
A
character
string specifying the chronological scale It must be one of "BP
" (the default), "CE
" or "b2k
".- iteration
A length-one
numeric
vector specifying the index of the iteration column.- start
An
integer
vector specifying the index of the columns corresponding to the beginning of the phases. If missing, every other column is used starting from the first column (after deleting theiteration
column, if any).- stop
An
integer
vector specifying the index of the columns corresponding to the end of the phases. If missing, every other column is used starting from the second column (after deleting theiteration
column, if any).- names
A
character
vector giving the names of the phases.- age
A length-one
numeric
vector specifying the index of the age column.
Value
An MCMC
object.
See also
Other read methods:
check
,
coda
,
read_bcal()
,
read_chronomodel
,
read_oxcal()