meanlist.Rd
This is just a wrapper of funlist
using
mean
meanlist(alist, na.rm = FALSE)
a list
logical indicating whether missing values should be removed
the mean
# say you have some list
list1 = list(1:5, runif(3), rnorm(4))
# get the mean of all elements in list1
meanlist(list1)
#> [1] 1.570545
# say you have missing data
list2 = list(c(1:4, NA), runif(3), rnorm(4))
# get the mean of all elements in list2 removing NAs
meanlist(list2, na.rm=TRUE)
#> [1] 0.8636049