search for: resultspatial

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

2008 Sep 23
0
additional parameters in function called by tapply
...aggregation goes in a two step way: a) summation of the parameter values of the same spatial differentiaton (e.g. sums of spatial2 or spatial3) b) calculation of the average of several years of the sums for step a I use tapply with the following call indices <- (list(year,spatial2,parameter) resultspatial <- tapply(value,indices,sum) for step b I use apply with the result of a and a function block_average block_average <- funcition(value,year,number_of_years_to_average) with the parameters value and years as vectors and number_of_years as integer. When I'm trying to skip the spatial agg...