getOffspring | R Documentation |
Get offspring to corresponding animal IDs provided
getOffspring(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 containing all of the ancestor IDs for all of the
IDs provided in the second argument ids
. All ancestors are combined
and duplicates are removed.
library(nprcgenekeepr)
pedOne <- nprcgenekeepr::pedOne
names(pedOne) <- c("id", "sire", "dam", "sex", "birth")
getOffspring(pedOne, c("s1", "d2"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.