powered by
Converts genotype counts to genotype vectors.
gcount_to_gvec(gcount)
A vector of length sum(gcount), containing gcount[1]
sum(gcount)
gcount[1]
copies of 0, gcount[2] copies of 1, gcount[3]
0
gcount[2]
1
gcount[3]
copies of 2, etc.
2
The vector of genotype counts.
David Gerard
gvec_to_gcount()
gcount <- c(1, 2, 3, 0, 5) gcount_to_gvec(gcount = gcount)
Run the code above in your browser using DataLab