View source: R/betapart_to_bioregion.R
betapart_to_bioregion | R Documentation |
This function converts dissimilarity results produced by the betapart package (and packages using betapart, such as phyloregion) into a dissimilarity object compatible with the bioregion package. This function only converts object types to make them compatible with bioregion; it does not modify the beta-diversity values. This function allows the inclusion of phylogenetic beta diversity to compute bioregions with bioregion.
betapart_to_bioregion(betapart_result)
betapart_result |
An object produced by the betapart package (e.g.,
using the |
A dissimilarity object of class bioregion.pairwise.metric
,
compatible with the bioregion package.
Boris Leroy (leroy.boris@gmail.com)
Maxime Lenormand (maxime.lenormand@inrae.fr)
Pierre Denelle (pierre.denelle@gmail.com)
comat <- matrix(sample(0:1000, size = 50, replace = TRUE,
prob = 1 / 1:1001), 5, 10)
rownames(comat) <- paste0("Site", 1:5)
colnames(comat) <- paste0("Species", 1:10)
## Not run:
beta_div <- betapart::beta.pair.abund(comat)
betapart_to_bioregion(beta_div)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.