Learn R Programming

nlist (version 0.4.0)

npdims.nlist: Number of Parameter Dimensions

Description

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 nlist
npdims(x, ...)

Value

A named integer vector of the number of dimensions of each parameter.

Arguments

x

An object.

...

Other arguments passed to methods.

See Also

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

Examples

Run this code
npdims(nlist(x = 1:3))
npdims(nlist(y = 3, zz = matrix(2:5, 2)))

Run the code above in your browser using DataLab