aggregate.nlists | R Documentation |
Aggregates an nlists_object()
into a nlist_object()
or by_chain = TRUE an nlists_object()
with nchains
nlist_object()
s.
## S3 method for class 'nlists'
aggregate(x, fun = mean, ..., by_chain = FALSE)
x |
An object. |
fun |
A function that given a numeric vector returns a numeric scalar. |
... |
Unused. |
by_chain |
A flag specifying whether to aggregate by chains. |
An nlist object if by_chain = FALSE
otherwise an nlists object.
Other aggregate:
aggregate.nlist()
aggregate(nlists(nlist(x = 1:3), nlist(x = 2:4)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.