
focalAnimals is a dataframe with one column (id) containing the of animal Ids from the examplePedigree pedigree.
Source:R/data.R
focalAnimals.Rd
They can be used to illustrate the identification of a population of interest as is shown in the example below.
Examples
library(nprcgenekeepr)
data("focalAnimals")
data("examplePedigree")
any(names(examplePedigree) == "population")
#> [1] FALSE
nrow(examplePedigree)
#> [1] 3694
examplePedigree <- setPopulation(ped = examplePedigree,
ids = focalAnimals$id)
any(names(examplePedigree) == "population")
#> [1] TRUE
nrow(examplePedigree)
#> [1] 3694
nrow(examplePedigree[examplePedigree$population, ])
#> [1] 327