artificialGenotypes {GROAN} | R Documentation |
Create a set of artificial genotypes
Description
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.
Usage
artificialGenotypes(samples = 50, markers = 200, ploidy = 2)
Arguments
samples |
number of individuals (rows) |
markers |
number of SNPs (columns) |
ploidy |
number of alleles per SNP |
Value
a samples x markers matrix
[Package GROAN version 1.3.1 Index]