Learn R Programming

hierfstat (version 0.5-11)

nb.alleles: Number of different alleles

Description

Counts the number of different alleles at each locus and population

Usage

nb.alleles(data,diploid=TRUE)

Arguments

data

A data frame containing the population of origin in the first column and the genotypes in the following ones

diploid

whether individuals are diploid

Value

A table, --with np (number of populations) columns and nl (number of loci) rows-- of the number of different alleles

Examples

Run this code
# NOT RUN {
data(gtrunchier)
nb.alleles(gtrunchier[,-2])
# }

Run the code above in your browser using DataLab