powered by
Counts the number of different alleles at each locus and population
nb.alleles(data,diploid=TRUE)
A data frame containing the population of origin in the first column and the genotypes in the following ones
whether individuals are diploid
A table, --with np (number of populations) columns and nl (number of loci) rows-- of the number of different alleles
# NOT RUN { data(gtrunchier) nb.alleles(gtrunchier[,-2]) # }
Run the code above in your browser using DataLab