Learn R Programming

nlist (version 0.1.1)

nterms.nlist: Number of Terms

Description

Gets the number of terms of an nlist_object().

Usage

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

Arguments

x

The object.

...

Unused.

Value

A count of the number of terms.

Examples

Run this code
# NOT RUN {
term::nterms(nlist(x = 2))
term::nterms(nlist(x = NA_real_))
term::nterms(nlist(x = 3, zz = matrix(2:5, 2)))
# }

Run the code above in your browser using DataLab