gcount_to_gvec: Converts genotype counts to genotype vectors.

View source: R/rscripts.R

gcount_to_gvecR Documentation

Converts genotype counts to genotype vectors.

Description

Converts genotype counts to genotype vectors.

Usage

gcount_to_gvec(gcount)

Arguments

gcount

The vector of genotype counts.

Value

A vector of length sum(gcount), containing gcount[1] copies of 0, gcount[2] copies of 1, gcount[3] copies of 2, etc.

Author(s)

David Gerard

See Also

gvec_to_gcount()

Examples

gcount <- c(1, 2, 3, 0, 5)
gcount_to_gvec(gcount = gcount)

segtest documentation built on July 1, 2025, 1:07 a.m.