Shows differences between two provenance records, useful for comparing processing across survey editions.
See also
Other provenance:
print.metasurvey_provenance(),
print.metasurvey_provenance_diff(),
provenance(),
provenance_to_json()
Examples
svy1 <- Survey$new(
data = data.table::data.table(id = 1:5, w = rep(1, 5)),
edition = "2023", type = "test",
engine = "data.table", weight = add_weight(annual = "w")
)
svy2 <- Survey$new(
data = data.table::data.table(id = 1:5, w = rep(2, 5)),
edition = "2024", type = "test",
engine = "data.table", weight = add_weight(annual = "w")
)
provenance_diff(provenance(svy1), provenance(svy2))
#> ── Provenance Diff ─────────────────────────────────────────────────────────────
#> Steps: 0 -> 0