View source: R/getPyramidAgeDist.R
getPyramidAgeDist | R Documentation |
Forms a dataframe with columns id
, birth
, sex
,
and age
for those animals with a status of Alive
in the
pedigree.
getPyramidAgeDist(ped = NULL)
ped |
dataframe with pedigree |
The lubridate package is used here because of the way the modern Gregorian calendar is constructed, there is no straightforward arithmetic method that produces a person’s age, stated according to common usage — common usage meaning that a person’s age should always be an integer that increases exactly on a birthday.
A pedigree with status
column added, which describes the
animal as ALIVE
or DECEASED
and a age
column added,
which has the animal's age in years or NA
if it cannot be calculated.
The exit
column values have been remapped to valid dates or NA
.
library(nprcgenekeepr)
ped <- getPyramidAgeDist()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.