search for: mean_list

Displaying 1 result from an estimated 1 matches for "mean_list".

Did you mean: chan_list
2012 Nov 09
1
Mean of matrices entries in list of lists
...mean values for each month over the whole 13 year period for (j in 1:12){ (list[[1]][[j]] [1,1] + list[[2]][[j]] [1,1] + ...... list[[13]][[j]][1,1] )/13 } How can I do that nicely? Original code looks like this (zeilen[j] is the number of hours for j=1 = January, 2 = february and so on): mean_list<-list() for (j in 1:12){ mean_list[[j]]<-matrix(0,nrow=zeilen[j], ncol=2) for (k in 1:zeilen[j]){ mean_list[[j]][k,1]<- (biglist_new[[1]][[j]][k,1]+biglist_new[[2]][[j]][k,1]+biglist_new[[3]][[j]][k,1]+biglist_new[[4]][[j]][k,1]+biglist_new[[5]][[j]][k,1]+biglist_new[[6]][[j]][k,1]+b...