dims.term: Dimensions

View source: R/dims.R

dims.termR Documentation

Dimensions

Description

Gets the dimensions of an object.

Usage

## S3 method for class 'term'
dims(x, ...)

Arguments

x

An object.

...

Other arguments passed to methods.

Details

Unlike base::dim(), dims returns the length of an atomic vector.

Value

An integer vector of the dimensions.

See Also

base::dim()

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

Examples


dims(term("beta[1,1]"))
dims(term("beta[1,1]", "beta[1,2]"))

term documentation built on Sept. 29, 2022, 5:14 p.m.