View source: R/focal_bylayer.R
focal_bylayer | R Documentation |
Apply's raster's focal
function to layers in a brick or stack. See help for focal
for more information on paramater behaviour.
focal_bylayer( x, w, fun, na.rm = FALSE, pad = FALSE, padValue = NA, NAonly = FALSE, cl = NULL, ... )
x |
A RasterBrick or RasterStack |
w |
Focal weights as required by |
fun |
Function to apply to value in focal region |
na.rm |
If TRUE NA values removed from computations. |
pad |
Passed to |
padValue |
Passed to |
NAonly |
Passed to |
cl |
a cluster for parallel computation created par parallel. If NULL then no parallel computations will occur. |
A RasterBrick with each layer the output raster::focal()
applied to a layer of the input brick
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.