createColony {SIMplyBee}R Documentation

Create a new Colony

Description

Level 2 function that creates a new Colony-class to initiate simulations.

Usage

createColony(x = NULL, location = NULL, simParamBee = NULL)

Arguments

x

Pop-class, one queen or virgin queen(s)

location

numeric, location of the colony as c(x, y)

simParamBee

SimParamBee, global simulation parameters

Value

new Colony-class

Examples

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

[Package SIMplyBee version 0.3.0 Index]