Learn R Programming

infinitefactor (version 1.0)

lmean: Average elements of a list

Description

Convenience function to compute sample means when samples are stored as a list. List elements should be compatible with addition and scalar division (e.g. must share the same dimensions).

Usage

lmean(list)

Arguments

list

a list of parameter samples

Value

same type as a single element of the input list

See Also

amean

Examples

Run this code
# NOT RUN {
l = replicate(100, rnorm(10), simplify = FALSE)
lmean(l)
# }

Run the code above in your browser using DataLab