Re: [R] R: mean from list

From: Rajarshi Guha <rxg218_at_psu.edu>
Date: Mon 13 Feb 2006 - 11:07:01 EST

On Sun, 2006-02-12 at 19:21 -0400, Kjetil Brinchmann Halvorsen wrote:
> statistical.model@googlemail.com wrote:
> > great!! thanks very much, mean(unlist(lapply(listdata, function(z) z$c)))
>
> WHY unlist(lapply(... when sapply(...
> is simpler?

Aah! Immediately after sending it I realized the simpler form :-/



Rajarshi Guha <rxg218_at_psu.edu> <http://jijo.cjb.net> GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE

Finally I am becoming stupider no more
- Paul Erdos' epitaph

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon Feb 13 11:10:06 2006

This archive was generated by hypermail 2.1.8 : Tue 14 Feb 2006 - 01:08:34 EST