Dear All, Is there an automatic way to sum the elements of a list? For example given a = list(diag(3), diag(3), diag(3)) to obtain b=a[1]+a[2]+a[3].
Thanks Ivo ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.