Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

pop.freq

Allelic frequencies


Description

Estimates allelic frequencies for each population and locus

Usage

pop.freq(dat,diploid=TRUE)

Arguments

dat

a data frame where the first column contains the population to which the different individuals belong, and the following columns contain the genotype of the individuals -one locus per column-

diploid

specify whether the data set consists of diploid (default) or haploid data

Value

A list containing allele frequencies. Each element of the list is one locus. For each locus, Populations are in columns and alleles in rows

Author(s)

Jerome Goudet jerome.goudet@unil.ch

Examples

data(gtrunchier)
pop.freq(gtrunchier[,-2])

hierfstat

Estimation and Tests of Hierarchical F-Statistics

v0.5-10
GPL (>= 2)
Authors
Jerome Goudet [aut, cre], Thibaut Jombart [aut], Zhian N. Kamvar [ctb], Eric Archer [ctb], Olivier Hardy [ctb]
Initial release
2021-11-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.