subset.nlist {nlist}R 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"))

[Package nlist version 0.3.3 Index]