newEmptyPop | R Documentation |
Creates an empty Pop-class
object with user
defined ploidy and other parameters taken from simParam.
newEmptyPop(ploidy = 2L, simParam = NULL)
ploidy |
the ploidy of the population |
simParam |
an object of |
Returns an object of Pop-class
with
zero individuals
#Create founder haplotypes
founderPop = quickHaplo(nInd=2, nChr=1, segSites=10)
#Set simulation parameters
SP = SimParam$new(founderPop)
SP$addTraitA(10)
#Create empty population
pop = newEmptyPop(simParam=SP)
isPop(pop)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.