remove_section: Remove subrecords in a tidyged object

View source: R/helpers.R

remove_sectionR Documentation

Remove subrecords in a tidyged object

Description

Remove subrecords in a tidyged object

Usage

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.


jl5000/tidyged.internals documentation built on Aug. 21, 2022, 8:32 p.m.