checkFreqs | R Documentation |
Checks whether a list of frequencies at a series of genetic loci both sum to one and lie between 0 and 1.
checkFreqs(Freqs)
Freqs |
A list containg elements |
If a locus fails to sum to one, or there are alleles which fall below zero or above one, then a warning message will be returned for each item in error.
James M. Curran
normalizeFreqs
data(fbiCaucs)
checkFreqs(fbiCaucs)
## induce an error
fbiCaucs$freqs[[1]] = runif(10)
checkFreqs(fbiCaucs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.