Identify all partners for an individual
get_indi_partners(gedcom, indi_xref = character(), 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 return the partner's name(s) instead of the xref(s).
A character vector of partner xrefs or names.
get_indi_partners(sample555, "@I1@")
#> [1] "@I2@"
get_indi_partners(sample555, "@I1@", return_name = TRUE)
#> [1] "Mary Ann Wilson"
get_indi_partners(sample555, "@I3@")
#> character(0)