Learn R Programming

hapsim (version 0.31)

haplofreqs: Haplotype frequencies

Description

Compute haplotype frequencies

Usage

haplofreqs(dat, firstl, lastl)

Arguments

dat

A binary matrix, rows are haplotypes and columns are binary markers

firstl

Position of the first locus

lastl

Position of the last locus

Value

A vector of haplotype frequencies

References

Montana, G. HapSim: a simulation tool for generating haplotype data with pre-specified allele frequencies and LD coefficients. 2005.

Examples

Run this code
data(ACEdata)
freqs <- haplofreqs(ACEdata, 17, 22)

Run the code above in your browser using DataLab