
getSexRatioWithAdditions returns the sex ratio of a group.
Source:R/getSexRatioWithAdditions.R
getSexRatioWithAdditions.Rd
Adding males and females to the ratio calculation is possible, but the
default behavior is to simply return the sex ratio of the group.
This is a helper routine for the main one calculateSexRatio
.
Arguments
- ids
character vector of animal Ids
- ped
datatable that is the
Pedigree
. It contains pedigree information including the IDs listed incandidates
.- additionalMales
Integer value of males to add to those within the group when calculating the ratio. Ignored if calculated ratio is 0 or Inf. Default is 0.
- additionalFemales
Integer value of females to add to those within the group when calculating the ratio. Ignored if calculated ratio is 0 or Inf. Default is 0.