reassign_NA | R Documentation |
Internal functions to reassign raster NA values based on the surrounding cells
reassign_NA(map, window_size, replace_any = F)
map |
input raster file |
window_size |
diameter of moving window, including the focal cell |
replace_any |
logical, can NA values be filled with any other raster class? |
window_size of parameter includes the focal cell. For example, a window size of 5 would include 2 cells in each direction from the focal cell. If replace_any is false, the global environment must contain a vector called 'allow_classes' which specifies raster classes that can fill NA values. This is a sub-optimal solution because it requires configuring the global env correctly, but the focal functions does not accept more than two arguments, so I don't see any other way to do this...
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.