Remove subrecords in a tidyged object

remove_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 remove only the first match found or to remove all matches.

Value

The tidyged object with the subrecord(s) removed.