
Get the direct ancestors of selected animals
Source:R/getLkDirectAncestors.R
getLkDirectAncestors.RdGets direct ancestors from labkey study schema and demographics
table.
Value
data.frame with pedigree structure having the records of the Ids
provided (the focal animals themselves) and all of their direct ancestors.
NULL is returned when the site configuration cannot be read or the
LabKey data cannot be fetched.
See also
Other direct relatives:
getFileDirectRelatives(),
getLkDirectRelatives(),
getPedDirectRelatives()
Examples
if (FALSE) { # \dontrun{
# Requires LabKey connection
library(nprcgenekeepr)
## Have to a vector of focal animals
focalAnimals <- c("1X2701", "1X0101")
suppressWarnings(getLkDirectAncestors(ids = focalAnimals))
} # }