7 Richness Metrics
Richness refers to the number of unique taxa. Typically, richness is used to refer to the number of unique species found in a sample but richness can be calculated for any taxonomic rank (e.g., order, family, genus).
7.1 Community Richness
7.2 Subset Richness
sub_rich.df <- nest.df %>%
dplyr::mutate(
rich_ephemeroptera_fam = taxa_rich(.dataframe = .,
.key_col = uid,
.counts_col = total,
.group_col = family,
.filter = order %in% "ephemeroptera",
.unnest_col = data),
rich_ephemeroptera_gen = taxa_rich(.dataframe = .,
.key_col = uid,
.counts_col = total,
.group_col = genus,
.filter = order %in% "ephemeroptera",
.unnest_col = data),
rich_ept_gen = taxa_rich(.dataframe = .,
.key_col = uid,
.counts_col = total,
.group_col = genus,
.filter = order %in% c("ephemeroptera",
"plecoptera",
"trichoptera"),
.unnest_col = data)
)