allGenotypes: Genotype matrix

View source: R/utils.R

allGenotypesR Documentation

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)

Arguments

n

A positive integer.

Value

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

Examples

allGenotypes(3)


pedprobr documentation built on June 8, 2025, 10:56 a.m.