Description Usage Arguments Details Value Examples
Calculate the mean moving window value for a given radius, shape and function for each cell in a larger resolution grid.
1 2 3 4 5 6 7 8 9 10 11 |
coarse_dat |
sf, Raster* or Spatial* object. The coarse grain data (response data) across which to calculate the aggregated moving window function |
fine_dat |
Raster* object. The fine grain data (predictor / covariate data) to aggregate |
d |
numeric. If |
type |
character. The shape of the moving window |
win_fun |
character. The function to apply to the moving window. The
function |
agg_fun |
character. The function by which to aggregate. By default this
is set to |
is_grid |
logical. Use |
quiet |
logical. If |
... |
further arguments passed to or from other methods |
grainchanger
has several built-in functions. Functions
currently included are:
shdi
- Shannon diversity, requires the additional argument lc_class
(vector or scalar)
shei
- Shannon evenness, requires the additional argument lc_class
(vector or scalar)
prop
- Proportion, requires the additional argument lc_class
(scalar)
var_range
- Range (max - min)
Note that winmove_agg
can be run in parallel using plan(multiprocess)
from the future
package.
Numeric vector containing moving window values calculated for each grid cell
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.