Skip to contents

Finds all possible genotypes based on input alleles.

Usage

allGenos(alleles)

Arguments

alleles

Vector of input alleles, numeric or character

Value

Matrix of all possible genotypes, one row per genotype

Author

Guro Dorum

Examples

alleles <- 1:3
allGenos(alleles)
#>      v1 v2
#> [1,]  1  1
#> [2,]  2  2
#> [3,]  3  3
#> [4,]  1  2
#> [5,]  1  3
#> [6,]  2  3