Description Usage Arguments Details Value Examples
Part of Pedigree Curation
1 | calcAge(birth, exit)
|
birth |
Date vector of birth dates |
exit |
Date vector of exit dates. |
Given vectors of birth and exit dates, calculate an individuals age. If no exit date is provided, the calculation is based on the current date.
A numeric vector (NA
allowed) indicating age in decimal years
from "birth" to "exit" or the current date if "exit" is NA.
1 2 3 4 5 | library(nprcgenekeepr)
qcPed <- nprcgenekeepr::qcPed
originalAge <- qcPed$age ## ages calculated at time of data collection
currentAge <- calcAge(qcPed$birth, qcPed$exit) ## assumes no changes in
## colony
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.