Skip to contents

Identifies personnel who retired, i.e., whose status changed from "active" to "inactive".

Usage

detect_retirement(data)

Arguments

data

A data.frame or data.table with columns personnel_id, ref_date, and status.

Value

A data.table with personnel_id, ref_date, and type_event = "retire".

Examples

if (FALSE) { # \dontrun{
retire_events <- detect_retirement(personnel_df)
} # }