Learn R Programming

SIMplyBee (version 0.4.1)

pullInd: Pull individuals from a population

Description

Level 1 function that pulls individuals from a population and update the population (these individuals don't stay in a population).

Usage

pullInd(pop, nInd = NULL, use = "rand", simParamBee = NULL)

Value

list with a node pulled holding Pop-class of pulled individuals and a node remnant) holding Pop-class

of remaining individuals

Arguments

pop

Pop-class

nInd

numeric, number of individuals to pull, if NULL pull all individuals

use

character, all options provided by selectInd

simParamBee

SimParamBee, global simulation parameters

Examples

Run this code
founderGenomes <- quickHaplo(nInd = 3, nChr = 1, segSites = 100)
SP <- SimParam$new(founderGenomes)
SP$nThreads = 1L
basePop <- newPop(founderGenomes)

pullInd(basePop, nInd = 2)
pullInd(basePop, nInd = 3)
pullInd(basePop)

Run the code above in your browser using DataLab