Skip to contents

Attach a column of data to the change-log describing the type of user change, i.e.

  • 'created' - user created a new ID

  • 'deleted' user deleted an ID and all associated row elements

  • 'updated' user made a change to a field of an existing ID

Usage

cdr_label_chg_log_activity(chg_log, key_field = "UID")

Arguments

chg_log

a change-log tibble pulled from the DB

key_field

the field in the primary table that contains the unique-ID for each observation

Value

the change-log tibble with activity type attached

Examples

if (FALSE) {
  cdr_label_chg_log_activity(chg_log, 'UID')
}