subset.nlist: Subset nlist Object

Description Usage Arguments Details Value Examples

View source: R/subset.R

Description

Subsets an nlist object by its parameters.

Usage

1
2
## 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

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

nlist documentation built on Sept. 5, 2021, 6:05 p.m.