
Look up the minimum breeding age (years) for one or more species and sexes
Source:R/getSpeciesMinBreedingAge.R
getSpeciesMinBreedingAge.RdMaps each supplied (species, sex) pair to the minimum age in years at which
an animal of that species and sex can produce offspring, using the
speciesGestation lookup table (or a supplied
breedingTable). Matching is case- and whitespace-insensitive on both
species and sex. Any species that is missing, NA, an empty string, or
not present in the table – and any sex that is not "M" or "F"
– falls back to default (2 years, the legacy package-wide minimum
parent age). Used by the Genetic Value Analysis unknown-parent mean-kinship
correction to form a focal animal's contemporaneous breeding-age peer
cohort. The bundled table is populated for the common colony NHP species;
the user-configurable override path is a separate feature.
Arguments
- species
character vector of species names (may contain
NA).- sex
character vector of sexes (
"M"or"F"); recycled to the length ofspecies(or vice versa).- breedingTable
optional data.frame with a character column
speciesand numeric columnsminMaleBreedingAgeandminFemaleBreedingAgeto use instead of the bundledspeciesGestationtable. Defaults toNULL, which uses the bundled table.- default
numeric fallback returned for species that are missing,
NA, empty, or not found, and for a sex that is not"M"/"F". Defaults to2.