Learn R Programming

nprcgenekeepr (version 1.0.5)

removeUnknownAnimals: removeUnknownAnimals Removes unknown animals added to pedigree that serve as placeholders for unknown parents.

Description

removeUnknownAnimals Removes unknown animals added to pedigree that serve as placeholders for unknown parents.

Usage

removeUnknownAnimals(ped)

Arguments

ped

pedigree dataframe

Value

Pedigree with unknown animals removed

Examples

Run this code
# NOT RUN {
library(nprcgenekeepr)
ped <- nprcgenekeepr::smallPed
addedPed <- cbind(ped, recordStatus = rep("original", nrow(ped)),
                stringsAsFactors = FALSE)
addedPed[1:3, "recordStatus"] <- "added"
ped2 <- removeUnknownAnimals(addedPed)
nrow(ped)
nrow(ped2)
# }

Run the code above in your browser using DataLab