R/dims.R
dims.term.Rd
Gets the dimensions of an object.
# S3 method for class 'term' dims(x, ...)
An object.
Other arguments passed to methods.
An integer vector of the dimensions.
Unlike base::dim(), dims returns the length of an atomic vector.
base::dim()
Other dimensions: ndims(), npdims(), pdims()
ndims()
npdims()
pdims()
dims(term("beta[1,1]")) #> [1] 1 dims(term("beta[1,1]", "beta[1,2]")) #> [1] 2