Identify all parents for an individual
get_indi_parents(
gedcom,
indi_xref = character(),
birth_only = FALSE,
return_name = FALSE
)
A tidyged object.
The xref of an Individual record to act on if one is not activated (will override active record).
Whether to only return biological parents.
Whether to return the parents name(s) instead of the xref(s).
A character vector of parent xrefs or names.
get_indi_parents(sample555, "@I2@")
#> character(0)
get_indi_parents(sample555, "@I3@")
#> [1] "@I1@" "@I2@"
get_indi_parents(sample555, "@I3@", return_name = TRUE)
#> [1] "Robert Eugene Williams" "Mary Ann Wilson"