Learn R Programming

hierfstat (version 0.5-11)

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

Examples

Run this code
# NOT RUN {
data(gtrunchier)
pop.freq(gtrunchier[,-2])
# }

Run the code above in your browser using DataLab