ra_focal | R Documentation |
ra_focal
has the effect of smoothing a raster object.
ra_focal(ra, weights, fun = mean, na.rm = FALSE, na.only = FALSE)
ra |
Raster object. |
weights |
A 3 by 3 matrix of values for the focal values. |
fun |
Function to use to sumamrise the focal values |
na.rm |
Should |
na.only |
Should only cells with |
Raster object.
Stuart K. Grange
## Not run: ra_focal( ra_heights, weights = matrix(1, 3, 3), fun = mean, na.rm = TRUE, na.only = TRUE ) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.