Learn R Programming

genoCN (version 1.24.0)

code.genotype: 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