powered by
Format allele frequencies to for a set of ids and loci
alleleFreqFormat(x, g)
a matrix or data.frame where first column is sample id and second colum is locus name.
a '>gtypes object.
matrix of original samples, loci, and a formatted character string giving alleles and their overall frequencies in the data.
alleleFreqs
# NOT RUN { data(msats.g) x <- cbind( id = sample(indNames(msats.g), 10, rep = TRUE), locus = sample(locNames(msats.g), 10, rep = TRUE) ) alleleFreqFormat(x, msats.g) # }
Run the code above in your browser using DataLab