Learn R Programming

DEMEtics (version 0.8.1)

allelefreq: Calculation of Allele Frequencies and Sample Sizes per Locus

Description

Allele frequencies and sample sizes are calculated from data of fragment lengths of microsatellite markers of a diploid organism for one or more loci and two or more populations.

Usage

allelefreq(tab)

Arguments

tab
A data table that equals the output of the function inputformat (see the section 'value' in the description of this function). A different input format can be used by transforming it using t

Value

  • allelefrequencyA data table comprising the following columns (you can get an example by carrying out the examples given below) that is assigned to the workspace: [object Object],[object Object],[object Object],[object Object],[object Object]
  • sample.sizesA data table comprising the following columns (you can get an example by carrying out the examples given below) that is assigned to the workspace: [object Object],[object Object],[object Object]

Details

The data tables that are returned are assigned to the workspace (.GlobalEnv) combined in a list named 'List' and additionally in separate objects named 'allelefrequency' and 'sample.sizes'.

See Also

inputformat, Hj, all.pops.Dest, all.pops.Dest.Chao, all.pops.Gst, pair.pops.Dest, pair.pops.Dest.Chao, pair.pops.Gst

Examples

Run this code
data(Example.transformed)
Example <- Example.transformed

allelefreq(Example)
List
allelefrequency
sample.sizes

Run the code above in your browser using DataLab