| Colony-class | R Documentation |
An object holding honeybee colony
isColony(x)
## S4 method for signature 'Colony'
show(object)
## S4 method for signature 'ColonyOrNULL'
c(x, ...)
x |
|
object |
|
... |
|
Colony-class or MultiColony-class
isColony(): Test if x is a Colony class object
show(Colony): Show colony object
c(ColonyOrNULL): Combine multiple colony objects
idinteger, unique ID of the colony
locationnumeric, location of the colony (x, y)
queenPop-class, the queen of the colony (we use
its misc slot for queen's age and drones (fathers) she mated with)
virginQueensPop-class, virgin queens of the
colony
dronesPop-class, drones of the colony
workersPop-class, workers of the colony
splitlogical, has colony split
swarmlogical, has colony swarmed
supersedurelogical, has colony superseded
collapselogical, has colony collapsed
productionlogical, is colony productive
misclist, available for storing extra information about the colony
createColony
founderGenomes <- quickHaplo(nInd = 4, nChr = 1, segSites = 100)
SP <- SimParamBee$new(founderGenomes)
basePop <- createVirginQueens(founderGenomes)
drones <- createDrones(x = basePop[1], nInd = 1000)
droneGroups <- pullDroneGroupsFromDCA(drones, n = 10, nDrones = nFathersPoisson)
colony1 <- createColony(x = basePop[2])
colony1 <- cross(colony1, drones = droneGroups[[1]])
colony2 <- createColony(x = basePop[3])
colony2 <- cross(colony2, drones = droneGroups[[2]])
colony3 <- createColony(x = basePop[4])
colony3 <- cross(colony3, drones = droneGroups[[3]])
colony1
show(colony1)
is(colony1)
isColony(colony1)
apiary <- c(colony1, colony2)
is(apiary)
isMultiColony(apiary)
c(apiary, colony3)
c(colony3, apiary)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.