powered by
gcount_to_gvec()
Inverse function of gcount_to_gvec().
gvec_to_gcount(gvec, ploidy = 4)
A vector of counts. Element k is the number of individuals with genotype k-1.
k
k-1
The vector of genotypes. gvec[i] is the genotype for individual i.
gvec[i]
The ploidy of the species.
David Gerard
gvec <- c(1, 2, 3, 2, 3, 1, 4, 0, 1, 0, 0, 1, 0, 0) gvec_to_gcount(gvec = gvec)
Run the code above in your browser using DataLab