gl.alf: Calculates allele frequency of the first and second allele...

View source: R/gl.alf.r

gl.alfR Documentation

Calculates allele frequency of the first and second allele for each loci A very simple function to report allele frequencies

Description

Calculates allele frequency of the first and second allele for each loci A very simple function to report allele frequencies

Usage

gl.alf(x)

Arguments

x

Name of the genlight object containing the SNP data [required].

Value

A simple data.frame with alf1, alf2.

Author(s)

Bernd Gruber (bugs? Post to https://groups.google.com/d/forum/dartr)

Examples

#for the first 10 loci only
gl.alf(possums.gl[,1:10])
barplot(t(as.matrix(gl.alf(possums.gl[,1:10]))))

green-striped-gecko/dartR documentation built on Jan. 31, 2024, 10:14 a.m.