Learn R Programming

nlist (version 0.1.1)

pdims.nlists: Dimensions of an nlists Object

Description

Gets the dimensions of an nlists object.

Usage

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

Arguments

x

An nlists object.

...

Unused

Value

A named list of the dimensions of each natomic_object().

See Also

term::pdims()

Examples

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