Learn R Programming

nlist (version 0.1.1)

pars.nlists: Parameter Names

Description

Gets the parameter names for an nlists_object().

Usage

# S3 method for nlists
pars(x, scalar = NA, terms = FALSE, ...)

Arguments

x

An nlists object.

scalar

A logical scalar specifying whether to get the names of all parameters (NA), only scalars (TRUE) or all parameters except scalars (FALSE).

terms

A flag specifying whether to return the parameter name for each term.

...

Unused.

Value

A character vector of the parameter names.

Examples

Run this code
# NOT RUN {
term::pars(nlists(nlist(zz = 1, y = 3:6), nlist(zz = 4, y = 13:16)))
# }

Run the code above in your browser using DataLab