我想知道一種允許對列表的數值求和(或計算平均值)的優雅方法。例如x <- list( a = matrix(c(1,2,3,4), nc=2), b = matrix(1, nc=2, nr=2))想要得到x[[1]]+x[[2]] 或平均值:(x[[1]]+x[[2]])/2 查看完整描述