Skip to content
Prev 86299 / 398506 Next

R: mean from list

great!! thanks very much, mean(unlist(lapply(listdata, function(z) z$c)))
works well.
and what about getting the average table $a (displaying the average elements
across all 1000 matrix)? could you please help me? I am struggling with
this...

thanks in advance
Roberto



mean(unlist(lapply(x, function(z) z$d))) should do the trick
On Sun, 12 Feb 2006 20:06:12 +0000, statistical.model at googlemail.com wrote:

            
http://www.R-project.org/posting-guide.html
Rajarshi Guha
<rxg218 at psu.edu>
<http://jijo.cjb.net>

----------------------------------------
La mia Cartella di Posta in Arrivo ?? protetta da SPAMfighter
205 messaggi contenenti spam sono stati bloccati con successo.
Scarica gratuitamente SPAMfighter!