Learn R Programming

nprcgenekeepr (version 1.0.5)

focalAnimals: focalAnimals is a dataframe with one column (_id_) containing the of animal Ids from the __examplePedigree__ pedigree.

Description

They can be used to illustrate the identification of a population of interest as is shown in the example below.

Usage

focalAnimals

Arguments

Format

An object of class data.frame with 327 rows and 1 columns.

Examples

Run this code
# NOT RUN {
library(nprcgenekeepr)
data("focalAnimals")
data("examplePedigree")
any(names(examplePedigree) == "population")
nrow(examplePedigree)
examplePedigree <- setPopulation(ped = examplePedigree,
                                 ids = focalAnimals$id)
any(names(examplePedigree) == "population")
nrow(examplePedigree)
nrow(examplePedigree[examplePedigree$population, ])
# }

Run the code above in your browser using DataLab