powered by
Get parents to corresponding animal IDs provided
getParents(pedSourceDf, ids)
A character vector with the IDs of the parents of the provided ID list.
dataframe with pedigree structure having at least the columns id, sire, and dam.
character vector of animal IDs
library(nprcgenekeepr) pedOne <- nprcgenekeepr::pedOne names(pedOne) <- c("id", "sire", "dam", "sex", "birth") getParents(pedOne, c("o1", "d4"))
Run the code above in your browser using DataLab