subset.term {term} | R Documentation |
Subset Term Vector
Description
Subsets a term vector.
Usage
## S3 method for class 'term'
subset(x, pars = NULL, select = NULL, ...)
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
Value
The modified term vector.
See Also
Examples
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"))
[Package term version 0.3.5 Index]