fst.ses.pd: fst.ses.pd a function for calculating PD

fst.ses.pdR Documentation

fst.ses.pd a function for calculating PD

Description

fst.ses.pd a function for calculating PD

Usage

fst.ses.pd(
  comm,
  phy,
  null_model = "taxaShuffle",
  nworkers = NULL,
  ses = NULL,
  runs = NULL
)

Arguments

comm

a matrix contains site * species information, note that it must be a matrix (will be automatically converted to sparse matrix) or sparse matrix.

phy

a phylogenetic (or generated from functional distance) tree

null_model

only implemented for taxaShuffle

nworkers

numbers of cores for calculating, by default it only 1 core will be used.

ses

a Boolean value indicates whether standardized form of PD will be calculated

runs

an integer indicates numbers of randomization, by default 999, can be set to smaller values for tesing.

Value

a tibble contains observed PD and standardized PD (when ses = T)


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