isFemale {AlphaSimR} | R Documentation |
Test if individuals of a population are female or male
Description
Test if individuals of a population are female or male
Usage
isFemale(x)
isMale(x)
Arguments
x |
Value
logical
Functions
-
isMale()
: Test if individuals of a population are female or male
Examples
founderGenomes <- quickHaplo(nInd = 3, nChr = 1, segSites = 100)
SP <- SimParam$new(founderGenomes)
SP$setSexes(sexes = "yes_sys")
pop <- newPop(founderGenomes)
isFemale(pop)
isMale(pop)
pop[isFemale(pop)]
pop[isFemale(pop)]@sex
[Package AlphaSimR version 1.5.3 Index]