iNEXT_beta: 'iNEXT_beta': compute the rarefaction and extrapolation of...

Description Usage Arguments Value Examples

View source: R/funs.R

Description

iNEXT_beta: compute the rarefaction and extrapolation of beta diveristy.

Usage

1
2
3
iNEXT_beta(x, q = c(0, 1, 2), datatype = "abundance", size = NULL,
  endpoint = NULL, knots = 40, se = TRUE, conf = 0.95,
  nboot = 30)

Arguments

x

a list consist of N data.frame/matrix describing species-by-assemblage/plot abundance. Note that the species in each element must exactly match including specpes order. Use data(abundata) to see data example.

q

a numeric value or vector specifying the diversity order of Hill number.

datatype

data type of input data: individual-based abundance data (datatype = "abundance").

size

an integer vector of sample sizes (number of individuals or sampling units) for which diversity estimates will be computed. If NULL, then diversity estimates will be computed for those sample sizes determined by the specified/default endpoint and knots.

endpoint

an integer specifying the sample size that is the endpoint for rarefaction/extrapolation. If NULL, then endpoint = double reference sample size.

knots

an integer specifying the number of equally-spaced knots (say K, default is 40) between size 1 and the endpoint; each knot represents a particular sample size for which diversity estimate will be calculated. If the endpoint is smaller than the reference sample size, then iNEXT_beta() computes only the rarefaction esimates for approximately K evenly spaced knots. If the endpoint is larger than the reference sample size, then iNEXT_beta() computes rarefaction estimates for approximately K/2 evenly spaced knots between sample size 1 and the reference sample size, and computes extrapolation estimates for approximately K/2 evenly spaced knots between the reference sample size and the endpoint.

se

a logical variable to calculate the bootstrap standard error and conf confidence interval.

conf

a positive number < 1 specifying the level of confidence interval, default is 0.95.

nboot

an integer specifying the number of replications.

Value

a list consists of N elements, where N is the number of region. Each element is a list containing 5 tables of gamma. alpha and beta diversities, and 2 types of dissimialrities (Sorensen and Jaccard), respectively.

Examples

1
2
data(abundata)
out <- iNEXT_beta(x = abundata, q = c(0,1,2), datatype = "abundance",se = TRUE)

YanHanChen/iNEXTBeta documentation built on Nov. 20, 2019, 12:02 a.m.