Identify the rows of subrecords in a tidyged object

identify_section(
  gedcom,
  containing_level,
  containing_tags,
  containing_values = character(),
  xrefs = character(),
  first_only = FALSE
)

Arguments

gedcom

A tidyged object.

containing_level

The level of the first line of the subrecord.

containing_tags

The accepted tags of the first line of the subrecord.

containing_values

The accepted values of the first line of the subrecord.

xrefs

The xrefs of records containing the subrecord (default is all records).

first_only

Whether to return only the first match found or to return all matches.

Value

A vector of rows in the tidyged object of the subrecord(s).