aggregate.nlist | R Documentation |
Aggregates an nlist_object()
into a named list of numeric scalars.
## S3 method for class 'nlist'
aggregate(x, fun = mean, ...)
x |
An nlist object. |
fun |
A function that given a numeric vector returns a numeric scalar. |
... |
Additional arguments passed to fun. |
An named list of numeric scalars
Other aggregate:
aggregate.nlists()
aggregate(nlist(x = 1:9))
aggregate(nlist(y = 3:5, zz = matrix(1:9, 3)), fun = function(x) x[1])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.