```{setup, eval=FALSE} install.packages(devtools) library(devtools) install_github('mobiodiv/mobr', ref = 'dev')
Load mobr and example data ```r library(mobr) data(inv_comm)
Calculate Whittaker's beta
calc_comm_div(inv_comm[1:2, ], 'S')
Calculate beta for ENS of PIE (beta S_PIE)
calc_comm_div(inv_comm[1:2, ], 'S_PIE')
Calculate beta for S given a specific coverage (beta C)
calc_comm_div(inv_comm[1:2, ], 'S_C')
Calculate beta for rarefied richness (S_n) for 20 individuals
calc_comm_div(inv_comm[1:2, ], 'S_n', effort = 20)
More than two sites can be used at a time
calc_comm_div(inv_comm[1:10, ], 'S')
It is also possible to just calculate beta diversity but it is generally not recommended to examine beta without reference to alpha and gamma diversity.
calc_beta_div(inv_comm[1:10, ] , 'S')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.