bind {ArchaeoPhases}R Documentation

Combine two MCMC Objects

Description

Combine two MCMC Objects

Usage

## S4 method for signature 'MCMC,MCMC'
cbind2(x, y)

Arguments

x, y

An MCMC object.

Value

An MCMC object.

Author(s)

N. Frerebeau

See Also

Other mutators: data.frame, names(), sort(), sort.list(), subset()

Examples

## Events
(eve <- as_events(mcmc_events, calendar = CE(), iteration = 1))

eve[1:1000, ] # Select the first 1000 iterations
eve[, 1:2]    # Select the first 2 events

cbind2(eve[, 1:2], eve[, 3:4]) # Combine two MCMC objects
sort(eve, decreasing = TRUE)   # Sort events in descending order

## Phases
(pha <- as_phases(mcmc_phases, start = c(1, 3), calendar = CE(), iteration = 1))

pha[1:1000, , ]          # Select the first 1000 iterations
pha[, 1, , drop = FALSE] # Select the first phase

[Package ArchaeoPhases version 2.0 Index]