Gets the name of each parameter for each term.

pars_terms(x, scalar = NULL, ...)

Arguments

x

A term vector.

scalar

A flag specifying whether to by default return all parameters (NULL), or only scalar parameters (TRUE) or only non-scalar parameters (FALSE).

...

Unused.

Value

A character vector of the term parameter names.

Details

The scalar argument is [Defunct].

See also

Examples

term <- term(
  "alpha[1]", "alpha[2]", "beta[1,1]", "beta[2,1]",
  "beta[1,2]", "beta[2,2]", "sigma", NA
)
pars_terms(term)
#> [1] "alpha" "alpha" "beta"  "beta"  "beta"  "beta"  "sigma" NA