betapart_to_bioregion {bioregion} | R Documentation |
Convert betapart dissimilarity to bioregion dissimilarity
Description
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.
Usage
betapart_to_bioregion(betapart_result)
Arguments
betapart_result |
An object produced by the betapart package (e.g.,
using the |
Value
A dissimilarity object of class bioregion.pairwise.metric
,
compatible with the bioregion package.
Author(s)
Boris Leroy (leroy.boris@gmail.com)
Maxime Lenormand (maxime.lenormand@inrae.fr)
Pierre Denelle (pierre.denelle@gmail.com)
Examples
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)
[Package bioregion version 1.2.0 Index]