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-class
numeric, number of individuals to pull, if NULL
pull all
individuals
character, all options provided by selectInd
SimParamBee
, global simulation parameters
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)
SP$nThreads = 1L
basePop <- newPop(founderGenomes)
#> Error in get("SP", envir = .GlobalEnv): object 'SP' not found
pullInd(basePop, nInd = 2)
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found
pullInd(basePop, nInd = 3)
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found
pullInd(basePop)
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found