Learn R Programming

segtest (version 2.0.0)

gcount_to_gvec: Converts genotype counts to genotype vectors.

Description

Converts genotype counts to genotype vectors.

Usage

gcount_to_gvec(gcount)

Value

A vector of length sum(gcount), containing gcount[1]

copies of 0, gcount[2] copies of 1, gcount[3]

copies of 2, etc.

Arguments

gcount

The vector of genotype counts.

Author

David Gerard

See Also

gvec_to_gcount()

Examples

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

Run the code above in your browser using DataLab