Learn R Programming

nprcgenekeepr (version 3.0.0)

filterReport: Filter a genetic value report to selected animals

Description

Filter a genetic value report to selected animals

Usage

filterReport(ids, rpt)

Value

A copy of report specific to the specified animals.

Arguments

ids

character vector of animal IDs

rpt

a dataframe with the required colname id, such as the data.frame of results from a genetic value analysis. Only id is used; all other columns are returned unchanged.

Examples

Run this code
library(nprcgenekeepr)
rpt <- nprcgenekeepr::pedWithGenotypeReport$report
rpt1 <- filterReport(c("GHH9LB", "BD41WW"), rpt)

Run the code above in your browser using DataLab