gather_samples: Gather columns into key-value pairs.

Description Usage Arguments Value

Description

Gather_samples is built off tidyr's gather function, which takes multiple columns and collapses into key-value pairs with other columns being "stack", "iteration".

Usage

1
2

Arguments

data

A single data.frame or list of data.frames

pars

List of parameters to include

drop

List of columns to drop. By default stateline's extra columns (energy, sigma, beta, accepted, swap_type) are removed.

thin

If set to a numeric value, will thin samples down to specified length using thin\_chains function.

Value

data.frame with columns stack, iteration, parameter, value


traitecoevo/stateliner documentation built on May 31, 2019, 7:44 p.m.