md2nat | R Documentation |
A function to calculate MPD or MNTD between native and aliens species
md2nat(
comm,
phy_dist,
native_sp.ls,
invasive_sp.ls,
ses = F,
method = "mpd",
abundance_weighted = F,
nworkers = NULL,
runs = NULL
)
comm |
a data.frame containing species abundance |
phy_dist |
a matrix containing phylogenetic distance |
native_sp.ls |
a vector containing native species |
invasive_sp.ls |
a vector containing native species |
ses |
if ses.bNTI or bNTI be calculated |
method |
MPD (default) or MNTD |
abundance_weighted |
should be indcies be abundance-weighted (default FALSE) |
nworkers |
numbers of cores used for computation |
runs |
999 random draws, can be set to to smaller number to reduce computation time |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.