pullInd {SIMplyBee} | R Documentation |
Level 1 function that pulls individuals from a population and update the population (these individuals don't stay in a population).
pullInd(pop, nInd = NULL, use = "rand", simParamBee = NULL)
pop |
|
nInd |
numeric, number of individuals to pull, if |
use |
character, all options provided by |
simParamBee |
|
list with a node pulled
holding Pop-class
of
pulled individuals and a node remnant)
holding Pop-class
of remaining individuals
founderGenomes <- quickHaplo(nInd = 3, nChr = 1, segSites = 100)
SP <- SimParam$new(founderGenomes)
basePop <- newPop(founderGenomes)
pullInd(basePop, nInd = 2)
pullInd(basePop, nInd = 3)
pullInd(basePop)