Learn R Programming

term (version 0.3.5)

dims.term_rcrd: Dimensions

Description

Gets the dimensions of an object.

Usage

# S3 method for term_rcrd
dims(x, ...)

Value

An integer vector of the dimensions.

Arguments

x

An object.

...

Other arguments passed to methods.

Details

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

See Also

base::dim()

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

Examples

Run this code

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

Run the code above in your browser using DataLab