determineSex {BGmisc}R Documentation

Determine Sex of Offspring

Description

This function assigns sexes to the offspring in a generation based on the specified sex ratio.

Usage

determineSex(idGen, sexR)

Arguments

idGen

Vector of IDs for the generation.

sexR

Numeric value indicating the sex ratio (proportion of males).

Value

Vector of sexes ("M" for male, "F" for female) for the offspring.


[Package BGmisc version 1.2.0 Index]