diversitySingleLocus: Calculate allelic diversity for a single locus

Description Usage Arguments Details Value

View source: R/diversity-allele_divtables.R

Description

The single argument is, for a single locus, a table of site-by-allele counts, with row names being the site names, and column names being the names given to the individual alleles.

Usage

1
2
3
## S3 method for class 'divtable'
diversitySingleLocus(tab, method = c("r", "q.nielsen",
  "q"), ...)

Arguments

tab

Table of site-by-allele counts, with row names being the site names and column names being the names given to the individual alleles

method

Method to use when calculating diversity within the locus. See diversity.

Details

For specific formulas and discussion of each statistic, see Scofield et al. (2015).

Value

A list of class singlelocus_diversity, containing values returned by diversity or derived from them:

Do we want to generalise allele.q.bar.weighted to compute whatever form of mean is appropriate for method???


douglasgscofield/dispersalDiversity documentation built on March 30, 2021, 9:50 a.m.