View source: R/getSpeciesGestation.R
| getSpeciesGestation | R Documentation |
Maps each supplied species name to a conservative upper bound on the number
of days from conception to birth, using the speciesGestation
lookup table (or a supplied gestationTable). Matching is case- and
whitespace-insensitive. Any species that is missing, NA, an empty
string, or not present in the table falls back to default (210 days,
the conservative rhesus bound). Used by getPotentialParents to
key its gestation window on the first-class species pedigree column.
getSpeciesGestation(species, gestationTable = NULL, default = 210L)
species |
character vector of species names (may contain |
gestationTable |
optional data.frame with a character column
|
default |
integer fallback returned for species that are missing,
|
an integer vector of gestation-period day bounds, the same length and
order as species.
getSpeciesGestation("RHESUS")
getSpeciesGestation(c("RHESUS", "UNICORN", NA))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.