determineSex: Determine Sex of Offspring

View source: R/helpPedigree.R

determineSexR Documentation

Determine Sex of Offspring

Description

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

Usage

determineSex(idGen, sexR, code_male = "M", code_female = "F")

Arguments

idGen

Vector of IDs for the generation.

sexR

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

code_male

The value to use for males. Default is "M"

code_female

The value to use for females. Default is "F"

Value

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


BGmisc documentation built on June 11, 2025, 1:07 a.m.