View source: R/getSpeciesMinBreedingAge.R
| getSpeciesMinBreedingAge | R Documentation |
Maps 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.
getSpeciesMinBreedingAge(species, sex, breedingTable = NULL, default = 2)
species |
character vector of species names (may contain |
sex |
character vector of sexes ( |
breedingTable |
optional data.frame with a character column
|
default |
numeric fallback returned for species that are missing,
|
a numeric vector of minimum breeding ages in years, the same length
as the longer of species and sex.
getSpeciesMinBreedingAge("RHESUS", "M")
getSpeciesMinBreedingAge("RHESUS", "F")
getSpeciesMinBreedingAge(c("RHESUS", "UNICORN"), c("M", "F"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.