gvec_to_gcount | R Documentation |
gcount_to_gvec()
.Inverse function of gcount_to_gvec()
.
gvec_to_gcount(gvec, ploidy = 4)
gvec |
The vector of genotypes. |
ploidy |
The ploidy of the species. |
A vector of counts. Element k
is the number of individuals
with genotype k-1
.
David Gerard
gcount_to_gvec()
gvec <- c(1, 2, 3, 2, 3, 1, 4, 0, 1, 0, 0, 1, 0, 0)
gvec_to_gcount(gvec = gvec)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.