npdims.nlist: Number of Parameter Dimensions

Description Usage Arguments Value See Also Examples

View source: R/npdims.R

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

1
2
## S3 method for class 'nlist'
npdims(x, ...)

Arguments

x

An object.

...

Other arguments passed to methods.

Value

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

See Also

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

Examples

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

nlist documentation built on Sept. 5, 2021, 6:05 p.m.