mean_list: taking mean over a list of nested lists

View source: R/util.R

mean_listR Documentation

taking mean over a list of nested lists

Description

taking mean over a list of nested lists

Usage

mean_list(lls, weights = NULL)

Arguments

lls

a list

weights

weights of each list

Value

a list of nested lists

Examples

ls <- list(
  list(a = 1, b = 2, t = "nig", ll = list(a = 1, b = 2, w = "ab")),
  list(a = 3, b = 5, t = "nig", ll = list(a = 1, b = 6, w = "ab")),
  list(a = 5, b = 5, t = "nig", ll = list(a = 4, b = 2, w = "ab"))
)
mean_list(ls)

ngme2 documentation built on May 20, 2026, 9:10 a.m.