I have two buffers that i want to combine. I tried overlay with fun=function(x,y){return(x*y)} but 0*5 = 0 so it produces NA's.I don't know how to combine them the one buffer should be 500 and the other 1000 but the inner buffer should become 1500 and the outer stay 1000 what operations is accurate here?
Here is the reproducible example that doesn't produce NA values
p
Here is the reproducible example that doesn't produce NA values
p