Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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)

Arguments

n

A positive integer.

Value

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

Examples

allGenotypes(3)

pedprobr

Probability Computations on Pedigrees

v0.5.0
GPL-3
Authors
Magnus Dehli Vigeland [aut, cre] (<https://orcid.org/0000-0002-9134-4962>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.