powered by
Aggregates an nlists_object() into a nlist_object() or by_chain = TRUE an nlists_object() with nchains nlist_object()s.
nlists_object()
nlist_object()
nchains
# S3 method for nlists aggregate(x, fun = mean, ..., by_chain = FALSE)
An nlist object.
A function that given a numeric vector returns a numeric scalar.
Additional arguments passed to fun.
A flag specifying whether to aggregate by chains.
An nlist object if by_chain = FALSE otherwise an nlists object.
by_chain = FALSE
# NOT RUN { aggregate(nlists(nlist(x = 1:3), nlist(x = 2:4))) # }
Run the code above in your browser using DataLab