View source: R/Functions_L2_Colony.R
createColony | R Documentation |
Level 2 function that creates a new Colony-class
to initiate simulations.
createColony(x = NULL, simParamBee = NULL)
x |
|
simParamBee |
|
new Colony-class
founderGenomes <- quickHaplo(nInd = 5, nChr = 1, segSites = 50)
SP <- SimParamBee$new(founderGenomes)
basePop <- createVirginQueens(founderGenomes)
drones <- createDrones(x = basePop[1], nInd = 15)
# Create an empty Colony class
colony <- createColony()
# Create Colony class with one or multiple virgin queens
colony1 <- createColony(x = basePop[2])
colony1
colony2 <- createColony(x = basePop[3:4])
colony2
# Create a mated Colony
colony1 <- cross(colony1, drones = drones)
colony1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.