subset.nlist | R Documentation |
Subsets an nlist object by its parameters.
## S3 method for class 'nlist'
subset(x, pars = NULL, ...)
x |
An nlist object. |
pars |
A character vector of parameter names. |
... |
Unused. |
It can also be used to reorder the parameters.
An nlist object.
nlist <- nlist(a = 1, y = 3, x = 1:4)
subset(nlist)
subset(nlist, "a")
subset(nlist, c("x", "a"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.