Description Usage Arguments Details Value Author(s) See Also Examples
Constructor for simugeno objects.
The function simugeno
creates a simugeno object from
a tabfreq object.
The function as.simugeno
is an alias for simugeno
function.
is.simugeno
tests if an object is a valid simugeno object.
Note: to get the manpage about simugeno, please type 'class ? simugeno'.
1 2 3 | simugeno(tab,which.loc=NULL,n=1)
as.simugeno(tab,which.loc=NULL,n=1)
is.simugeno(x)
|
tab |
a tabfreq object created with constructor |
which.loc |
a character vector giving the chosen loci for the genotypes simulation. The default is set to NULL,
which corresponds to all the loci of the |
n |
integer vector giving the number of individuals. If there are several
populations, |
x |
an object |
At a given locus, an individual's genotype is simulated by randomly drawing two alleles (with replacement) at their respective allele frequencies in the target population.
For simugeno
and as.simugeno
, a simugeno object. For is.simugeno
, a logical.
Hinda Haned h.haned@nfi.minvenj.nl
"simugeno"
, and tabfreq
for creating a tabfreq object from a data file.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.