Raster package internal moving window function
.raster_focal(r_obj, window_size, fn, ...)
raster package object to pass a window function
number indicating the length of a squared window's side.
a function to be convoluted. Can be either a string or a R function. Character strings options are: "sum", "mean", and "modal".
additional parameters to be passed to raster package
raster package object