Skip to contents

Returns the disclosed-amendment history recorded by amend_sframe() as a data frame, one row per amendment in the order they were recorded.

Usage

sframe_get_amendments(instrument)

Arguments

instrument

An sframe object.

Value

A data frame with columns timestamp, reason_code, reason_text, tier, author, deviation_report, signoff, previous_hash, new_hash, and changed_fields (a comma-joined string). Zero rows if the instrument has no recorded amendments. Export with write.csv() for an external audit trail.

Examples

item  <- sframe_item("q1", "How satisfied are you?", type = "text")
instr <- sframe_instrument("Demo", components = list(item))
sframe_get_amendments(instr)