Learn R Programming

strataG (version 2.0.2)

numericSNPmat: Create a numeric SNP matrix

Description

Create a matrix of SNPs coded as 0, 1, 2, where 0 and 2 are the two homozygotes and 1 is the heterozygote.

Usage

numericSNPmat(g)

Arguments

g

a '>gtypes object.

Value

a data.frame with all biallelic loci recoded.