View source: R/normalizeFreqs.R
normalizeFreqs | R Documentation |
Normalize a list of frequencies at a series of genetic loci both sum to one. Not that this does not deal with the problem of values larger than one or smaller than zero.
normalizeFreqs(Freqs)
Freqs |
A list containg elements |
Divides vector in Freqs$freqs by the vector sum.
A list containg elements loci
and freqs
. freqs
is a list of vectors containing the frequencies at the given loci.
James M. Curran
checkFreqs
data(fbiCaucs)
## induce an error
fbiCaucs$freqs[[1]] = rgamma(10,1,1)
checkFreqs(fbiCaucs)
fbiCaucs = normalizeFreqs(fbiCaucs)
checkFreqs(fbiCaucs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.