get_indi_parents: Identify all parents for an individual

View source: R/identify.R

get_indi_parentsR Documentation

Identify all parents for an individual

Description

Identify all parents for an individual

Usage

get_indi_parents(
  gedcom,
  indi_xref = character(),
  birth_only = FALSE,
  return_name = FALSE
)

Arguments

gedcom

A tidyged object.

indi_xref

The xref of an Individual record to act on if one is not activated (will override active record).

birth_only

Whether to only return biological parents.

return_name

Whether to return the parents name(s) instead of the xref(s).

Value

A character vector of parent xrefs or names.

Examples

get_indi_parents(sample555, "@I2@")
get_indi_parents(sample555, "@I3@")
get_indi_parents(sample555, "@I3@", return_name = TRUE)

jl5000/tidygedcom documentation built on June 22, 2022, 5:16 p.m.