Learn R Programming

term (version 0.1.0)

tdims: Term Index

Description

Gets the index for each term of an object.

Usage

tdims(x)

tindex(x, ...)

# S3 method for term tindex(x, ...)

Arguments

x

The object.

...

Unused.

Value

A named list of the index for each term.

Methods (by class)

  • term: Term indices for term vector

Details

tdims() is deprecated.

For example the index of beta[2,1] is c(2L, 1L) while the index for sigma is 1L. It is useful for extracting the values of individual terms.

See Also

term-vector()

Examples

Run this code
# NOT RUN {
tindex(as.term(c("alpha", "alpha[2]", "beta[1,1]", "beta[2 ,1  ]")))
# }

Run the code above in your browser using DataLab