ind_val | R Documentation |
Calculating diversity indices such as species richness (s), Shannon's H' (h), Simpson' D (d), Simpson's inverse D (i).
ind_val(
df,
stand = NULL,
species = NULL,
abundance = NULL,
group = NULL,
row_data = FALSE
)
df |
A data.frame, which has three cols: stand, species, abundance. Community matrix should be converted using table2df(). |
stand, species, abundance |
A text to specify each column. If NULL, 1st, 2nd, 3rd column will be used. |
group |
A text to specify group column. |
row_data |
A logical. TRUE: return row result data of labdsv::indval(). |
A data.frame.
library(dplyr)
library(tibble)
data(dune, package = "vegan")
data(dune.env, package = "vegan")
df <-
dune %>%
table2df(st = "stand", sp = "species", ab = "cover") %>%
dplyr::left_join(tibble::rownames_to_column(dune.env, "stand"))
ind_val(df, abundance = "cover", group = "Moisture")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.