allele_richness: Calculate mean allele richness at all sampling levels

Description Usage Arguments Value

Description

Calculates the mean allele richness across all markers for a sample at all sampling levels. Based on the formula presented in https://www.genetics.org/content/157/1/389

Usage

1
allele_richness(pop, allele_coding = 1:2, num_cores = detectCores())

Arguments

pop

a data frame with individuals in columns and markers in rows, there must be atleast two individuals, missing data is not allowed

allele_coding

the coding used for indicating the different alleles

num_cores

the number of cores to use with mclapply(), must be 1 on windows, default is detectCores()

Value

a table of expected allele richness for each marker at each subsampling level with markers in rows and sampling levels in columns


DiDeoxy/PGDA documentation built on June 19, 2020, 5:38 a.m.