Learn R Programming

MethComp (version 1.30.2)

subset.MCmcmc: Subset an MCmcmc object

Description

Subset an MCmcmc object

Usage

# S3 method for MCmcmc
subset(x, subset = NULL, allow.repl = FALSE, chains = NULL, ...)

Arguments

x

object to be subsetted.

subset

Numerical, character or list giving the variables to keep. If numerical, the variables in the MCmcmc object with these numbers are selected. If character, each element of the character vector is "grep"ed against the variable names, and the matches are selected to the subset. If a list each element is used in turn, numerical and character elements can be mixed.

allow.repl

Logical. Should duplicate columns be allowed in the result?

chains

Numerical vector giving the number of the chains to keep.

...

further arguments to be passed to or from other methods.