Gets the number of the dimensions of each parameter of an object.
The default methods returns the length of each element of pdims()
as an integer vector.
Usage
# S3 method for class 'term'
npdims(x, ...)
Arguments
- x
An object.
- ...
Other arguments passed to methods.
Value
A named integer vector of the number of dimensions of each parameter.
Examples
npdims(term("alpha[1]", "alpha[3]", "beta[1,1]", "beta[2,1]"))
#> alpha beta
#> 1 2