powered by
Calculate observed and heterozygosity.
heterozygosity(g, by.strata = FALSE, type = c("expected", "observed"))
a '>gtypes object.
logical - return results by strata?
return expected or observed heterozygosity
expected
observed
# NOT RUN { data(msats.g) # Expected heterozygosity heterozygosity(msats.g, type = "expected") # Observed heterozygosity by strata heterozygosity(msats.g, FALSE, "observed") # }
Run the code above in your browser using DataLab