Level 0 function that returns dominance values of individuals in a caste.

getDd(x, caste = NULL, nInd = NULL, collapse = FALSE, simParamBee = NULL)

getQueenDd(x, collapse = FALSE, simParamBee = NULL)

getFathersDd(x, nInd = NULL, collapse = FALSE, simParamBee = NULL)

getVirginQueensDd(x, nInd = NULL, collapse = FALSE, simParamBee = NULL)

getWorkersDd(x, nInd = NULL, collapse = FALSE, simParamBee = NULL)

getDronesDd(x, nInd = NULL, collapse = FALSE, simParamBee = NULL)

Arguments

x

Pop-class, Colony-class, or MultiColony-class

caste

NULL or character, NULL when x is a Pop-class, and character when x is a Colony-class or MultiColony-class with the possible values of "queen", "fathers", "workers", "drones", "virginQueens", or "all"

nInd

numeric, number of individuals to access, if NULL all individuals are accessed, otherwise a random sample

collapse

logical, if the return value should be a single matrix with dominance values of all the individuals

simParamBee

SimParamBee, global simulation parameters

Value

vector of dominance values when x is

Colony-class and list of vectors of dominance values when

x is MultiColony-class, named by colony id when x

is MultiColony-class

# Not exporting this function, since the theory behind it is not fully developed

Functions

  • getQueenDd(): Access dominance value of the queen

  • getFathersDd(): Access dominance values of fathers

  • getVirginQueensDd(): Access dominance values of virgin queens

  • getWorkersDd(): Access dominance values of workers

  • getDronesDd(): Access dominance values of drones

See also

dd and vignette(topic = "QuantitativeGenetics", package = "SIMplyBee")