View source: R/st_shannon_index.R
st_shannon_index | R Documentation |
This function calculates the Shannon's Diversity Index for landscapes.
st_shannon_index(
tool = "sf",
x,
field,
geom.boundary = NULL,
do.preProcessing = TRUE,
return.geom = FALSE,
quiet = TRUE
)
tool |
tool to perform dissolve operation. Default is |
x |
polygon of class |
field |
field name or table column ( |
geom.boundary |
polygon of class |
do.preProcessing |
If |
return.geom |
If set to |
quiet |
If set to |
list
with overall Shannon's Diversity Index, and index for each landscape classes. If return.geom
is TRUE
than list
with result and geometry on which SHDI is based is returned.
Code is based on the following references:
McGarigal, K., & Marks, B. J. (1995). FRAGSTATS: spatial pattern analysis program for quantifying landscape structure. Gen. Tech. Rep. PNW-GTR-351. Portland, OR: US Department of Agriculture, Forest Service, Pacific Northwest Research Station. 122 p, 351.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.