supersede {SIMplyBee} | R Documentation |
Supersede
Description
Level 2 function that supersedes a Colony or MultiColony object - an event where the queen dies. The workers and drones stay unchanged, but workers raise virgin queens, of which only one prevails.
Usage
supersede(x, year = NULL, nVirginQueens = NULL, simParamBee = NULL, ...)
Arguments
x |
|
year |
numeric, year of birth for virgin queens |
nVirginQueens |
integer, the number of virgin queens to be created in the
colony; of these one is randomly selected as the new virgin queen of the
remnant colony. If |
simParamBee |
|
... |
additional arguments passed to |
Value
Colony-class
or MultiColony-class
with the
supersede event set to TRUE
Examples
founderGenomes <- quickHaplo(nInd = 10, nChr = 1, segSites = 50)
SP <- SimParamBee$new(founderGenomes)
basePop <- createVirginQueens(founderGenomes)
drones <- createDrones(basePop[1], n = 1000)
droneGroups <- pullDroneGroupsFromDCA(drones, n = 10, nDrones = 10)
# Create Colony and MultiColony class
colony <- createColony(x = basePop[2])
colony <- cross(colony, drones = droneGroups[[1]])
(colony <- buildUp(colony, nWorkers = 100))
apiary <- createMultiColony(basePop[3:8], n = 6)
apiary <- cross(apiary, drones = droneGroups[2:7])
apiary <- buildUp(apiary, nWorkers = 100)
# Supersede a colony
isQueenPresent(colony)
isVirginQueensPresent(colony)
colony <- supersede(colony)
isQueenPresent(colony)
isVirginQueensPresent(colony)
# Supersede all colonies in the apiary
isQueenPresent(colony)
isVirginQueensPresent(colony)
apiary1 <- supersede(apiary)
isQueenPresent(colony)
isVirginQueensPresent(colony)
# Sample colonies from the apiary that will supersede (sample with probability of 0.2)
tmp <- pullColonies(apiary, p = 0.2)
# Swarm only the pulled colonies
(supersede(tmp$pulled))
[Package SIMplyBee version 0.3.0 Index]