The terms argument is [Defunct].

# S3 method for class 'term'
npdims(x, terms = FALSE, ...)

Arguments

x

An object.

terms

A flag specifying whether to get the number of dimensions for each term element.

...

Other arguments passed to methods.

Value

A named integer vector of the number of dimensions of each parameter.

See also

Other dimensions: dims(), ndims(), pdims()

Examples

npdims(term("alpha[1]", "alpha[3]", "beta[1,1]", "beta[2,1]"))
#> alpha  beta 
#>     1     2