genotype.index.multilocus: Funcion to separate the population in genotype as if there...

Usage Arguments Value Examples

View source: R/genotype.index.multilocus.R

Usage

1
    pop.loci(Proba,List_gene,loci,N)

Arguments

Proba

Matrix with the names of all the genotypes. This array is calculated with the function create.probability.matrix

List_gene

List with the number of alleles for each loci

loci

number giving the place in List_gene of the loci to concider

N

Array of 2 dimension giving the size of the population for each genotype for each deme, first dimension is the genotypes and second the deme.

Value

A square matrix with the size of the popultion for each genotype of the concidered loci in each deme.

Examples

1
2
3
4
5
6
7
8
9
The index with two loci each with two allele
List_gene<-c(2,2)
genotype.index.multilocus(List_gene)
    
             A1B1 A2B1 A1B2 A2B2
    A1B1    1    2    3    4
    A2B1    2    5    6    7
    A1B2    3    6    8    9
    A2B2    4    7    9   10

MarcoAndrello/MetaPopGen_0.0.8 documentation built on May 25, 2019, 12:23 p.m.