Is there a way to perform geometric mean over rasters in r while accounting for NA's? Will the code below suffice? Was exploring methods for doing this iteratively using list.files, a forloop and a stack, but for now this will be enough.
(raster1*raster2)^(1/2)