Displaying 1 result from an estimated 1 matches for "monthmean".
Did you mean:
monthmax
2010 Aug 12
0
- combining lists
...rst contains months, for example, for
times.ind[1] I get a list of day numbers which are from January. (so
1:30, 361:390 etc)
The other list does the same for years times.ind2[1] gives the days 1:360
It is now possible for me to create for example monthly averages for
each grid cell
##CODE##
pr.monthmean <- sapply(times.ind, function(x,arr) rowMeans(arr[,,x],dims=2),
arr = pr)
## END CODE##
the same can be done for yearly averages.
However, I would like to create a matrix with monthly averages for each
year separately. I think I need to couple times.ind and times.ind2 in
some way, but I d...