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
.
getSexRatioWithAdditions(ids, ped, additionalMales, additionalFemales)
character vector of animal Ids
datatable that is the `Pedigree`. It contains pedigree
information including the IDs listed in candidates
.
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.
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.