pcd_pred: Predicted PCD with species pool

Description Usage Arguments Value

View source: R/pd.R

Description

expected PCD from one or two communities (depends on the species pool)

Usage

1
pcd_pred(comm_old, comm_new = NULL, tree, reps = 10^3, cpp = TRUE)

Arguments

comm_old

a site by species dataframe or matrix, with sites as rows and species as columns.

comm_new

an optional second site by species data frame. It should have the same number of rows as comm_old.

tree

the phylogeny for communities.

reps

number of random draws, default is 1000 times.

cpp

whether to use loops written with c++, default is TRUE

Value

a list with species richness of the pool, expected PSV, PSV of the pool, and unique number of species richness across sites.


daijiang/dli55 documentation built on Jan. 28, 2018, 3:48 a.m.