allGenotypes {pedprobr} | R 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)
[Package pedprobr version 0.9.4 Index]