insert_explicit_death_subrecords: Insert explicit death subrecords

View source: R/utils.R

insert_explicit_death_subrecordsR Documentation

Insert explicit death subrecords

Description

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

Usage

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.


jl5000/tidyged.utils documentation built on June 26, 2022, 4:40 p.m.