An object holding honeybee colony
isColony(x)
# S4 method for Colony
show(object)
# S4 method for ColonyOrNULL
c(x, ...)Colony-class
Colony-class
NULL, Colony-class, or
MultiColony-class
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
last_eventcharacter, the last event of the colony TODO: revise https://github.com/HighlanderLab/SIMplyBee/issues/10
misclist, available for storing extra information about the colony
founderGenomes <- quickHaplo(nInd = 4, nChr = 1, segSites = 100)
SP <- SimParamBee$new(founderGenomes)
basePop <- createVirginQueens(founderGenomes)
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found
drones <- createDrones(x = basePop[1], nInd = 1000)
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found
droneGroups <- pullDroneGroupsFromDCA(drones, n = 10, nDrones = nFathersPoisson)
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found
colony1 <- createColony(x = basePop[2])
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found
colony1 <- cross(colony1, drones = droneGroups[[1]])
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found
colony2 <- createColony(x = basePop[3])
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found
colony2 <- cross(colony2, drones = droneGroups[[2]])
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found
colony3 <- createColony(x = basePop[4])
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found
colony3 <- cross(colony3, drones = droneGroups[[3]])
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found
colony1
#> Error in eval(expr, envir, enclos): object 'colony1' not found
show(colony1)
#> Error in h(simpleError(msg, call)): error in evaluating the argument 'object' in selecting a method for function 'show': object 'colony1' not found
is(colony1)
#> Error in is(colony1): object 'colony1' not found
isColony(colony1)
#> Error in is(x, class2 = "Colony"): object 'colony1' not found
apiary <- c(colony1, colony2)
#> Error in eval(expr, envir, enclos): object 'colony1' not found
is(apiary)
#> Error in is(apiary): object 'apiary' not found
isMultiColony(apiary)
#> Error in is(x, class2 = "MultiColony"): object 'apiary' not found
c(apiary, colony3)
#> Error in eval(expr, envir, enclos): object 'apiary' not found
c(colony3, apiary)
#> Error in eval(expr, envir, enclos): object 'colony3' not found