Learn R Programming

term (version 0.1.0)

subset.term: Subset Term Vector

Description

Subsets a term vector.

Usage

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

Arguments

x

The object.

select

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

...

Unused.

Value

The modified term vector.

See Also

term-vector()

Examples

Run this code
# NOT RUN {
term <- as.term(c(
  "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