Learn R Programming

nlist (version 0.1.1)

pars.nlist: Parameter Names

Description

Gets the parameter names for an nlist_object().

Usage

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

Arguments

x

An nlist 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(nlist(zz = 1, y = 3:6))
# }

Run the code above in your browser using DataLab