Learn R Programming

nprcgenekeepr (version 1.0.5)

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

Description

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

Usage

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

Run this code
# NOT RUN {
library(nprcgenekeepr)
data("qcBreeders")
data("qcPed")
df <- addSexAndAgeToGroup(ids = qcBreeders, ped = qcPed)
head(df)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab