For my model I need to aggregate my raster datasets using standard deviation. Is there a 'fun' abbreviation for this purpose? I am currently using mean but wish to use standard deviation instead. This is my code
library(raster)
merge1 <- raster("temp_merge1.tif")
red1 <- aggregate(merge1, fact=16, fun=mean, expand=TRUE, na.rm=TRUE)