Learn R Programming

nlist (version 0.1.1)

nterms.nlists: Number of Terms

Description

Gets the number of terms of an nlists_object().

Usage

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

Arguments

x

The object.

...

Unused.

Value

A count of the number of terms.

Examples

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