getLogFileSubset: Extract a subset of parameters from a log file

Description Usage Arguments Value See Also

View source: R/log_utils.R

Description

Extract all parameters from the log file that matches pattern. e.g if par="R0" extract (R0s.1 R0s.2 R0s.3 etc.). If the input log file contains more than one chain, the set of matching parameters will be extracted from each chain.

Usage

1

Arguments

logfile

The logfile object to extract the subset from. Can be an "mcmc", "mcmc.list" or "data.frame" object, or a list of "data.frame" objects.

pattern

The string to match with the names of the parameters to extract. This is treated as a regular expression.

start

If TRUE then only the start of parameter names are matched against pattern (pattern becomes "^<pattern>")

Value

The object returned is always of the same class as the input log file (mcmc, mcmc.list, data.frame or a list of data.frame), but will only contain traces for the parameters matching pattern.

See Also

readLog, grep


laduplessis/beastio documentation built on Dec. 14, 2021, 7:04 p.m.