getParents | R Documentation |
Get parents to corresponding animal IDs provided
getParents(pedSourceDf, ids)
pedSourceDf |
dataframe with pedigree structure having at least the columns id, sire, and dam. |
ids |
character vector of animal IDs |
A character vector with the IDs of the parents of the provided ID list.
library(nprcgenekeepr)
pedOne <- nprcgenekeepr::pedOne
names(pedOne) <- c("id", "sire", "dam", "sex", "birth")
getParents(pedOne, c("o1", "d4"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.