Learn R Programming

universals (version 0.0.3)

pdims: Parameter Dimensions

Description

Gets the dimensions of each parameter of an object.

Usage

pdims(x, ...)

Arguments

x

An object.

...

Other arguments passed to methods.

Value

A named list of integer vectors of the dimensions of each parameter.

See Also

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

Examples

Run this code
# NOT RUN {
library(nlist)

pdims(nlist(x = 1:3))
pdims(nlist(y = 3, zz = matrix(2:5, 2)))
# }

Run the code above in your browser using DataLab