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

Pop-class

Value

logical

Functions

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.3.2 Index]