Description Usage Arguments Author(s) Examples
Wrapper for snpclone initializer.
1 |
x |
a |
... |
arguments to be passed on to the genlight constructor. These are not used if x is not missing. |
parallel |
should the parallel package be used to construct the object? |
n.cores |
how many cores should be utilized? See documentation for
|
mlg |
a vector of multilocus genotypes or an object of class MLG for the new snpclone object. |
mlgclass |
if |
Zhian N. Kamvar
1 2 3 4 5 6 7 8 9 10 | (x <- as.snpclone(glSim(100, 1e3, ploid=2)))
## Not run:
# Without parallel processing
system.time(x <- as.snpclone(glSim(1000, 1e5, ploid=2)))
# With parallel processing... doesn't really save you much time.
system.time(x <- as.snpclone(glSim(1000, 1e5, ploid=2, parallel = TRUE),
parallel = TRUE))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.