Learn R Programming

nprcgenekeepr (version 1.0.5)

getPotentialSires: Provides list of potential sires

Description

Provides list of potential sires

Usage

getPotentialSires(ids, minAge = 1, ped)

Arguments

ids

character vector of IDs of the animals

minAge

integer value indicating the minimum age to consider in group formation. Pairwise kinships involving an animal of this age or younger will be ignored. Default is 1 year.

ped

dataframe that is the `Pedigree`. It contains pedigree information including the IDs listed in candidates.

Value

A character vector of potential sire Ids

Examples

Run this code
# NOT RUN {
library(nprcgenekeepr)
ped <- nprcgenekeepr::pedWithGenotype
ids <- nprcgenekeepr::qcBreeders
getPotentialSires(ids, minAge = 1, ped)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab