Learn R Programming

nlist (version 0.4.0)

pdims.nlists: Parameter Dimensions

Description

Gets the dimensions of each parameter of an object.

Usage

# S3 method for nlists
pdims(x, ...)

Value

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

Arguments

x

An object.

...

Other arguments passed to methods.

See Also

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

Examples

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

Run the code above in your browser using DataLab