Learn R Programming

nlist (version 0.1.1)

npdims.nlists: Number of Parameter Dimensions

Description

Gets the number of dimensions of each natomic_object() in an nlists_object().

Usage

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

Arguments

x

The nlists object

...

Unused.

Value

A named list of the number of dimensions of each numeric atomic object.

See Also

pdims()

Examples

Run this code
# NOT RUN {
term::npdims(nlists(nlist(x = 1:3)))
term::npdims(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