getLkDirectRelatives: Get the direct ancestors of selected animals

Description Usage Arguments Value Examples

View source: R/getLkDirectRelatives.R

Description

Gets direct ancestors from labkey study schema and demographics table.

Usage

1
getLkDirectRelatives(ids, unrelatedParents = FALSE)

Arguments

ids

character vector with Ids.

unrelatedParents

logical vector when FALSE the unrelated parents of offspring do not get a record as an ego; when TRUE a place holder record where parent (sire, dam) IDs are set to NA.

Value

A data.frame with pedigree structure having all of the direct ancestors for the Ids provided.

Examples

1
2
3
4
library(nprcgenekeepr)
## Have to a vector of focal animals
focalAnimals <- c("1X2701", "1X0101")
suppressWarnings(getLkDirectRelatives(ids = focalAnimals))

rmsharp/nprcmanager documentation built on April 24, 2021, 3:13 p.m.