View source: R/artificial_data.R
artificialGenotypes | R Documentation |
This function return a matrix of 0/1/2... up to ploidy level. Nothing fancy, each data point is sampled from an equally probable distribution.
artificialGenotypes(samples = 50, markers = 200, ploidy = 2)
samples |
number of individuals (rows) |
markers |
number of SNPs (columns) |
ploidy |
number of alleles per SNP |
a samples x markers matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.