gl.sim.genotypes {dartR.base} | R Documentation |
Generate random genotypes
Description
Generate random genotypes for a single population drawing upon the allele frequencies from that population.
Usage
gl.sim.genotypes(x, n.ind = 200, verbose = NULL)
Arguments
x |
Name of the genlight object [required]. |
n.ind |
Number of individuals to be simulated (should be less than the number of loci) [default 200] |
verbose |
Verbosity: 0, silent or fatal errors; 1, begin and end; 2, progress log; 3, progress and results summary; 5, full report [default 2 or as specified using gl.set.verbosity] |
Value
Returns a genlight object with the simulated genotypes
Author(s)
Custodian: Arthur Georges (Post to https://groups.google.com/d/forum/dartr)
See Also
Other data manipulation:
gl.define.pop()
,
gl.drop.ind()
,
gl.drop.loc()
,
gl.drop.pop()
,
gl.edit.recode.pop()
,
gl.impute()
,
gl.join()
,
gl.keep.ind()
,
gl.keep.loc()
,
gl.keep.pop()
,
gl.make.recode.ind()
,
gl.merge.pop()
,
gl.reassign.pop()
,
gl.recode.ind()
,
gl.recode.pop()
,
gl.rename.pop()
,
gl.sample()
,
gl.sort()
,
gl.subsample.ind()
,
gl.subsample.loc()