Part of Pedigree Curation
Value
A logical vector with one element per row of ped that is
TRUE for each animal whose sire and dam are both NA. The
result never contains NA.
Details
A founder is an animal whose sire and dam are both unknown (NA).
Animals with exactly one known parent (partial parentage) are
not founders.
See also
getFounders for the founder id values.
Examples
library(nprcgenekeepr)
ped <- data.frame(
id = c("A", "B", "C", "D", "E", "F", "G"),
sire = c(NA, NA, "A", "A", NA, "D", "D"),
dam = c(NA, NA, "B", "B", NA, "E", "E"),
stringsAsFactors = FALSE
)
isFounder(ped)
#> [1] TRUE TRUE FALSE FALSE TRUE FALSE FALSE
