Learn R Programming

mixIndependR (version 1.0.0)

FreqHetero: Build Observed Distribution of No. of Heterozygous loci

Description

Build Observed Distribution of No. of Heterozygous loci

Usage

FreqHetero(h)

Arguments

h

a dataframe of heterozygosity, made up with 0 and 1, outcome of function "Heterozygous" Rows for individuals, and columns for markers.

Value

a dataframe of frequencies of each number of heterozygous loci(from 0 to No. of loci)

Details

This function build the observed distributions from observed heterozygosity table, made up of 0,1.

Examples

Run this code
# NOT RUN {
h<-matrix(rbinom(20,1,0.5),nrow=5)
FreqHetero(h)
# }

Run the code above in your browser using DataLab