R/pop.allele.proportions.r

Defines functions pop.allele.proportions

# Function called within allelefreq.r, to calculate the relative
# proportion of each allele in all populations for a single locus
pop.allele.proportions <- function(anzahlk.pop.1pop){
allele.numbers=as.numeric(as.vector(anzahlk.pop.1pop$number))
hundred.percent=sum(allele.numbers)
percent=allele.numbers/hundred.percent
percent
}

Try the DEMEtics package in your browser

Any scripts or data that you put into this service are public.

DEMEtics documentation built on May 1, 2019, 10:09 p.m.