Learn R Programming

nprcgenekeepr (version 1.0.8)

getParents: Get parents to corresponding animal IDs provided

Description

Get parents to corresponding animal IDs provided

Usage

getParents(pedSourceDf, ids)

Value

A character vector with the IDs of the parents of the provided ID list.

Arguments

pedSourceDf

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

ids

character vector of animal IDs

Examples

Run this code
library(nprcgenekeepr)
pedOne <- nprcgenekeepr::pedOne
names(pedOne) <- c("id", "sire", "dam", "sex", "birth")
getParents(pedOne, c("o1", "d4"))

Run the code above in your browser using DataLab