ClusterR with multiple raster stacks
问题 Here is an example that raster library provides for using clusterR and overlay functions: library(raster) beginCluster() r <- raster() r[] <- 1:ncell(r) s <- stack(r, r*2, r*3) f2 <- function(d,e,f) (d + e) / (f * param) param <- 122 ov <- clusterR(s, overlay, args=list(fun=f2), export='param') I want to know how to run that function if I have multiple raster stacks: s <- stack(r, r*2, r*3) s2 <- stack(r*2, r*3, r*4) s3 <- stack(r*3, r*4, r*5) I want something like this ( d,e,f in function f2