powered by
Build Observed Distribution of No. of Heterozygous loci
FreqHetero(h)
a dataframe of heterozygosity, made up with 0 and 1, outcome of function "Heterozygous" Rows for individuals, and columns for markers.
a dataframe of frequencies of each number of heterozygous loci(from 0 to No. of loci)
This function build the observed distributions from observed heterozygosity table, made up of 0,1.
# NOT RUN { h<-matrix(rbinom(20,1,0.5),nrow=5) FreqHetero(h) # }
Run the code above in your browser using DataLab