Level 0 function that returns fathers presence status (are they present or not, which means the queen is mated).

isFathersPresent(x)

areFathersPresent(x)

Value

logical, named by colony id when x is

MultiColony-class

Functions

  • areFathersPresent(): Are fathers present

Examples

founderGenomes <- quickHaplo(nInd = 8, 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

# Create a Colony and a MultiColony class
colony <- createColony(x = basePop[2])
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found
isFathersPresent(colony)
#> Error in is(x, class2 = "Colony"): object 'colony' not found
apiary <- createMultiColony(basePop[3:4], n = 2)
#> Error in createMultiColony(basePop[3:4], n = 2): object 'basePop' not found
isFathersPresent(apiary)
#> Error in is(x, class2 = "Colony"): object 'apiary' not found

colony <- cross(colony, drones = droneGroups[[1]])
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found
isFathersPresent(removeDrones(colony))
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found

apiary <- cross(apiary, drones = droneGroups[c(2, 3)])
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found
isFathersPresent(removeDrones(apiary))
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found