Subsets a term_rcrd.

# S3 method for term_rcrd
subset(x, pars = NULL, ...)

Arguments

x

The object.

pars

A character vector of parameter names.

...

Unused.

Value

The modified term vector.

Examples

term_rcrd <- term_rcrd(
  "alpha[1]", "alpha[2]", "beta[1,1]", "beta[2,1]",
  "beta[1,2]", "beta[2,2]", "sigma"
)
if (FALSE) {
subset(term_rcrd, "beta")
subset(term_rcrd, c("alpha", "sigma"))
}