getOffspring: Get offspring to corresponding animal IDs provided

Description Usage Arguments Value Examples

View source: R/getOffspring.R

Description

Get offspring to corresponding animal IDs provided

Usage

1
getOffspring(pedSourceDf, ids)

Arguments

pedSourceDf

dataframe with pedigree structure having at least the columns id, sire, and dam.

ids

character vector of animal IDs

Value

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.

Examples

1
2
3
4
5
library(nprcgenekeepr)

pedOne <- nprcgenekeepr::pedOne
names(pedOne) <- c("id", "sire", "dam", "sex", "birth")
getOffspring(pedOne, c("s1", "d2"))

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