Learn R Programming

term (version 0.3.5)

subset.term_rcrd: Subset Term Record

Description

Subsets a term_rcrd.

Usage

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

Value

The modified term vector.

Arguments

x

The object.

pars

A character vector of parameter names.

...

Unused.

See Also

term_rcrd_object()

Examples

Run this code
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"))
}

Run the code above in your browser using DataLab