FreqAlleleShare {mixIndependR}R Documentation

Build Observed Distribution of No. of Shared Alleles

Description

Build Observed Distribution of No. of Shared Alleles

Usage

FreqAlleleShare(AS)

Arguments

AS

a matrix of number of shared alleles, made up with 0, 1 and 2, outcome of function "AlleleShare_Table". Rows for individuals, and columns for markers.

Details

This function build the observed distributions from observed Allele Share table, made up of 0,1 and 2.

Value

a dataframe of frequencies of each number of shared alleles(from 0 to 2*N0. of loci)

Examples

AS<-matrix(sample(c(0:2),20,replace=TRUE,prob=c(0.3,0.3,0.4)),nrow=5)
FreqAlleleShare(AS)

[Package mixIndependR version 1.0.0 Index]