Learn R Programming

RClone (version 1.0.3)

freq_RR: Allelic Frequencies

Description

freq_RR returns a table of allelic frequencies computed with or without Round-Robin method.

Usage

freq_RR(data1, haploid = FALSE, vecpop = NULL, genet = FALSE, RR = FALSE)

Arguments

data1

a Rclone table with one allele per column.

haploid

logical, option,haploid indicates the ploidy level of data1.

vecpop

vector, option, vecpop indicates the population name of each unit of data1, if data1 contains several populations. If data1 contains only one population, leave vecpop = NULL.

genet

option, if TRUE, data1 is reduced to genets.

RR

option, if TRUE, indicates frequencies are computed with Round-Robin method.

Value

a table (one population) or a list of tables (several populations) with three columns:

  • a first column with the number of the locus considered (written as "locus_1"),

  • a second column with the list of the unique alleles of the locus,

  • a last column with the frequency of the allele in row.

Details

Round-Robin method (Parks & Werth 1993) is a sub-sampling approach which avoids overestimation of rare alleles. Each locus frequency is estimated on MLG lists constructed without the locus sampled. This calculation is repeated for all loci.

References

Parks & Werth, 1993, A study of spatial features of clones in a population of Bracken fern, Pteridium aquilinum (Dennstaedtiaceae). Arnaud-Haond et al., 2007, Standardizing methods to address clonality in population studies.

See Also

pgen and pgen_Fis

Examples

Run this code
# NOT RUN {
data(posidonia)

freq_RR(posidonia, RR = TRUE)
freq_RR(posidonia)
# }

Run the code above in your browser using DataLab