Description Usage Arguments Value Author(s) Examples
View source: R/genotype_frequencies.R
Provides a summary of genotype frequencies (observed and expected) from
a vector of locus
objects.
1 | genotype_frequencies(x, supress_warnings = FALSE)
|
x |
An object of type |
supress_warnings |
A flag that will prevent warnings in output for ease in simulation without loosing materials in the 50 warnings() |
A data.frame
with genotype, observed, and expected as counts.
Rodney J. Dyer rjdyer@vcu.edu
1 2 3 4 5 6 | freqs <- c(0.55, 0.30, 0.15)
alleles <- c(LETTERS[1:3])
f <- data.frame(Locus="PGM", Allele=alleles, Frequency=freqs)
data <- make_population(f,N=20)
table(data$PGM)
genotype_frequencies( data$PGM )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.