setwise_beta: Calculate pairwise/ setwise beta diversities

Description Usage Arguments Details Value

View source: R/setwise_beta.R

Description

This is an internal helper function for beta_stand(). Beta-diversity is calculated for the number of samples in x and the the given index. Therefore, x must have exactly N_samples rows. This is a security feature to ensure that users don't try to calculate another set size than given by the number of rows in x. Use beta_stand()!

Usage

1
setwise_beta(x, setsize = 2, func, ...)

Arguments

x

A site by species matrix.

setsize

number of sites in the matrix

func

function returning the desired beta-diversity metric

...

additional argumets passed on to func

Details

If extrapolate = F, observed S will be returned if N_stand exceeds sample size.

Value

A single numeric value for the beta diversity index.


T-Engel/betaC documentation built on May 2, 2021, 3:19 a.m.