Learn R Programming

pedprobr (version 0.9.5)

allGenotypes: Genotype matrix

Description

An autosomal marker with n alleles has choose(n+1, 2) possible unordered genotypes. This function returns these as rows in a matrix.

Usage

allGenotypes(n)

Value

An integer matrix with two columns and choose(n+1, 2) rows.

Arguments

n

A positive integer.

Examples

Run this code
allGenotypes(3)

Run the code above in your browser using DataLab