Skip to contents

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 including 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 beta.pair function).

Value

A dissimilarity object of class bioregion.pairwise.metric compatible with the bioregion package.

Author

Boris Leroy (leroy.boris@gmail.com), Maxime Lenormand (maxime.lenormand@inrae.fr) and 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)

if (FALSE) { # \dontrun{
beta_div <- betapart::beta.pair.abund(comat)
betapart_to_bioregion(beta_div)
} # }