View source: R/addSexAndAgeToGroup.R
| addSexAndAgeToGroup | R Documentation |
Build a group data frame with ID, sex, and age
addSexAndAgeToGroup(ids, ped)
ids |
character vector of animal IDs |
ped |
The pedigree information in data.frame format |
An empty ids vector yields a zero-row data frame that still
contains all three columns (ids, sex, age), with
sex an empty factor, so the returned schema does not depend on the
number of ids supplied.
Dataframe with Id, Sex, and Current Age
library(nprcgenekeepr)
data("qcBreeders")
data("qcPed")
df <- addSexAndAgeToGroup(ids = qcBreeders, ped = qcPed)
head(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.