subset.term | R Documentation |
Subsets a term vector.
## S3 method for class 'term'
subset(x, pars = NULL, select = NULL, ...)
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. |
... |
These dots are for future extensions and must be empty. |
The modified term vector.
term-vector()
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"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.