Sum of all elements in a list
sumlist.Rd
This is just a wrapper of funlist
using sum
Examples
# say you have some list
list1 = list(1:5, runif(3), rnorm(4))
# get the sum of all elements in list1
sumlist(list1)
#> [1] 15.82087
# say you have missing data
list2 = list(c(1:4, NA), runif(3), rnorm(4))
# get the sum of all elements in list2 removing NAs
sumlist(list2, na.rm=TRUE)
#> [1] 10.51554