npdims.nlists {nlist}R Documentation

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 class 'nlists'
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

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

[Package nlist version 0.3.3 Index]