Learn R Programming

dartR (version 1.9.9.1)

gl.percent.freq: Generate percentage allele frequencies by locus and population

Description

This is a support script, to take SNP data or SilocoDArT presence/absence data grouped into populations in a genelight object {adegenet} and generate a table of allele frequencies for each population and locus

Usage

gl.percent.freq(x, verbose = NULL)

Arguments

x

-- name of the genlight object containing the SNP or Tag P/A (SilicoDArT) data [required]

verbose

-- verbosity: 0, silent or fatal errors; 1, begin and end; 2, progress log ; 3, progress and results summary; 5, full report [default 2 or as specified using gl.set.verbosity]

Value

A matrix with allele (SNP data) or presence/absence frequencies (Tag P/A data) broken down by population and locus

Examples

Run this code
# NOT RUN {
m <-  gl.percent.freq(testset.gl)
m
# }

Run the code above in your browser using DataLab