remove_living: Remove data for living individuals in a tidyged object

View source: R/utils.R

remove_livingR Documentation

Remove data for living individuals in a tidyged object

Description

Remove data for living individuals in a tidyged object

Usage

remove_living(
  tg,
  max_age = 120,
  guess = FALSE,
  remove_record = FALSE,
  explan_note = "Information on this individual has been redacted",
  remove_supp_records = TRUE
)

Arguments

tg

A tidyged object.

max_age

The maximum age to assume for a living person (if a date of birth is given).

guess

Whether to guess the age of individuals if no death event or date of birth is given and possibly retain them, or be cautious and remove them anyway (the default).

remove_record

Whether to remove the Individual records, or retain them as placeholders.

explan_note

Text to include in an explanatory note for any redacted records. An empty string will not add a note.

remove_supp_records

Whether to also remove supporting records (sources, repositories, notes, multimedia) associated with the living individuals. These may contain names and dates so it is probably best to remove them.

Value

A tidyged object cleansed of information on living individuals.


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