Learn R Programming

RVPedigree (version 0.0.3)

Get.G: Create genotypes from haplotypes

Description

Create genotypes from haplotypes

Usage

Get.G(haplotypes)

Arguments

haplotypes
Matrix of haplotypes (rows: individuals, columns: alleles)

Value

Matrix of genotypes (rows: individuals, columns genotypes)

Details

Given a matrix of haplotypes (with one allele per column), this function creates a matrix of genotypes by combining the alleles from odd and even columns into genotypes.