Forms a dataframe with Id, Sex, and current Age given a list of Ids and a pedigree

addSexAndAgeToGroup(ids, ped)

Arguments

ids

character vector of animal Ids

ped

datatable that is the `Pedigree`. It contains pedigree information including the IDs listed in candidates.

Value

Dataframe with Id, Sex, and Current Age

Examples

# \donttest{ library(nprcgenekeepr) data("qcBreeders") data("qcPed") df <- addSexAndAgeToGroup(ids = qcBreeders, ped = qcPed) head(df)
#> ids sex age #> Q0RGP7 Q0RGP7 F 16.104038 #> C1ICXL C1ICXL F 5.081451 #> J3D3N5 J3D3N5 M 20.153320 #> VFS0XB VFS0XB M 15.148528 #> HP3E04 HP3E04 M 13.995893 #> 2KULR3 2KULR3 F 7.759069
# }