subset.nlist: Subset nlist Object

View source: R/subset.R

subset.nlistR Documentation

Subset nlist Object

Description

Subsets an nlist object by its parameters.

Usage

## S3 method for class 'nlist'
subset(x, pars = NULL, ...)

Arguments

x

An nlist object.

pars

A character vector of parameter names.

...

Unused.

Details

It can also be used to reorder the parameters.

Value

An nlist object.

Examples

nlist <- nlist(a = 1, y = 3, x = 1:4)
subset(nlist)
subset(nlist, "a")
subset(nlist, c("x", "a"))

nlist documentation built on June 8, 2025, 9:41 p.m.