allGenotypes: Genotype matrix

Description Usage Arguments Value Examples

View source: R/utils.R

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

1

Arguments

n

A positive integer.

Value

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

Examples

1

pedprobr documentation built on Nov. 13, 2020, 5:06 p.m.