Description Usage Arguments Value See Also Examples
Assigns NA value to all cells having a NA values within their w x w
neighborhood.
1  | 
x | 
 A   | 
w | 
 Numeric. Size of the window around each cell. Must be an odd number.  | 
filename | 
 Character. Output file name including path to directory and
eventually extension. Default is   | 
... | 
 Additional arguments passed to   | 
Raster* object
1 2 3 4 5 6 7 8 9 10  | # Load raster package
library(raster)
# Open and stack ALS metrics
elev_p95 <- raster(system.file("extdata/examples/ALS_metrics_p95.tif",package="foster"))
cover <- raster(system.file("extdata/examples/ALS_metrics_cov_mean.tif",package="foster"))
Y_vars <- stack(elev_p95,cover)
# Remove edges in a 3 x 3 neighborhood
Y_vars_edges <- edges(Y_vars, w=3)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.