View source: R/Haplotype_sim.R
Haplotype_sim | R Documentation |
Simulate a haplotype structure matrix through random sampling of binary argutments, where the rows correspond to the SNPs and the columns to the haplotypes.
Haplotype_sim(nsnp = 500, nhap = 5)
nsnp |
Integer, number of SNPs |
nhap |
Integer, number of haplotypes |
Returns a numeric matrix, with all entries being binary, where the rows correspond to the SNPs and the columns to the haplotypes.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.