getPedDirectRelatives {nprcgenekeepr} | R Documentation |
Get the direct ancestors of selected animals from supplied pedigree.
Description
Gets direct ancestors from labkey study
schema and demographics
table.
Usage
getPedDirectRelatives(ids, ped, unrelatedParents = FALSE)
Arguments
ids |
character vector with Ids. |
ped |
pedigree dataframe object that is used as the source of pedigree information. |
unrelatedParents |
logical vector when |
Value
A data.frame with pedigree structure having all of the direct ancestors for the Ids provided.
Examples
library(nprcgenekeepr)
## Have to a vector of focal animals
focalAnimals <- c("1X2701", "1X0101")
suppressWarnings(getLkDirectRelatives(ids = focalAnimals))
[Package nprcgenekeepr version 1.0.7 Index]