| shannon_frag | R Documentation |
Computes Shannon diversity and its decomposition
shannon_frag(x, gx, f, gf)
x |
Vector of dimension S (number of species) with the number of individuals observed in each species. NA values are allowed. 0 values are converted to NA. |
gx |
Vector of dimension S of factors indicating the group of each species. G groups. |
f |
Vector of dimension G with the number (>0) of fragments in each group |
gf |
Vector of dimension G of factors indicating the groups to which the fragments "f" belong. |
shannon: Shannon's total Entropy.
within: Within groups entropy.
between: Between groups entropy.
groups: A data frame with information about each group: relative frequency, internal entropy and number of species.
Arnaud Barat, Andreu Sansó, Maite Arilla-Osuna, Ruth Blasco, Iñaki Pérez-Fernández, Gabriel Cifuentes-Alcobenda, Rubén Llorente, Daniel Vivar-Ríos, Ella Assaf, Ran Barkai, Avi Gopher, & Jordi Rosell-Ardèvol (2026) <doi:10.1007/s10816-026-09802-3>.
shannon
data(Qesem_s)
data(Qesem_f)
shannon_frag(Qesem_s$HU, Qesem_s$Group, Qesem_f$HU, Qesem_f$Group)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.