Learn R Programming

term (version 0.3.5)

subset.term: Subset Term Vector

Description

Subsets a term vector.

Usage

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

Value

The modified term vector.

Arguments

x

The object.

pars

A character vector of parameter names.

select

A character vector of the names of the parameters to include in the subsetted object.

...

Unused.

Details

The select argument is [Defunct].

See Also

term-vector()

Examples

Run this code
term <- term(
  "alpha[1]", "alpha[2]", "beta[1,1]", "beta[2,1]",
  "beta[1,2]", "beta[2,2]", "sigma"
)
subset(term, "beta")
subset(term, c("alpha", "sigma"))

Run the code above in your browser using DataLab