R/removeUnknownAnimals.R
removeUnknownAnimals.Rd
removeUnknownAnimals Removes unknown animals added to pedigree that serve as placeholders for unknown parents.
removeUnknownAnimals(ped)
ped | pedigree dataframe |
---|
Pedigree with unknown animals removed
# \donttest{ 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)#> [1] 17#> [1] 14# }