Hi list,

In the raster package, is it possible to specify which way I want to 
blend the two rasters. e.g. :

r1 <- raster(xmn = -10, ymn = -10, xmx = 10, ymx = 10)
r2 <- raster(xmn = 0, ymn = 0, xmx = 20, ymx = 20)

r1[] <- 1:ncell(r1)
r2[] <- 1:ncell(r2)

rm <- merge(r1, r2)
plot(rm)

You get the first raster on top (r1), but I would like to merge them 
with a function.

I would like to use something like e.g. fun = mean or max. If it's not 
in the raster package, is there any package that allow to merge images 
and specify the way it merge.

Thanks,
Etienne

	[[alternative HTML version deleted]]

