md2nat: A function to calculate MPD or MNTD between native and aliens...

View source: R/mpd.mntd.R

md2natR Documentation

A function to calculate MPD or MNTD between native and aliens species

Description

A function to calculate MPD or MNTD between native and aliens species

Usage

md2nat(
  comm,
  phy_dist,
  native_sp.ls,
  invasive_sp.ls,
  ses = F,
  method = "mpd",
  abundance_weighted = F,
  nworkers = NULL,
  runs = NULL
)

Arguments

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


kun-ecology/ecoloop documentation built on Jan. 9, 2025, 10:20 a.m.