Last data update: 2014.03.03

R: code bi-allele genotype to numerical value
code.genotypeR Documentation

code bi-allele genotype to numerical value

Description

code a genotype vector, e.g. ("AA", "AC", ...) to a numerical vector based on the count of minor allele, e.g., (0, 1, ...)

Usage

code.genotype(v)

Arguments

v

character vector of genotypes

Value

a numerical vector of genotype

Author(s)

Wei Sun wsun@bios.unc.edu

Results