This function inserts explicit death subrecords for individuals who have a date of birth that makes them older than a maximum age.

insert_explicit_death_subrecords(
  tg,
  max_age = 120,
  guess = FALSE,
  explan_note = "This death event has been inferred automatically from other facts"
)

Arguments

tg

A tidyged object.

max_age

The maximum age to assume for a living person.

guess

If a date of birth cannot be found, whether to guess it from other information.

explan_note

Text to include in an explanatory note for any added death subrecords. An empty string will not add a note.

Value

An updated tidyged object with additional death subrecords.