Learn R Programming

dartR (version 2.0.4)

utils.basic.stats: Calculates mean observed heterozygosity, mean expected heterozygosity and Fis per locus, per population and Fst across all populations

Description

This is a re-implementation of hierfstat::basics.stats specifically for genlight objects. Formula (and hence results) match exactly the original version of hierfstat::basics.stats (although Dstp and Fstp are not currently computed) but it is much faster.

Usage

utils.basic.stats(x)

Arguments

x

A genlight object containing the SNP genotypes [required].

Value

A list with with the statistics for each population

Examples

Run this code
# NOT RUN {
out <- utils.basic.stats(platypus.gl)
# }

Run the code above in your browser using DataLab