powered by
Compares current data against its committed reference snapshot. Returns diagnostic information about changes.
check_drift(.data, reference = NULL)
A drift report (class keyed_drift_report), or NULL if no snapshot found.
keyed_drift_report
A data frame with a snapshot reference.
Optional content hash to compare against. If NULL, uses the attached snapshot reference.
df <- key(data.frame(id = 1:3, x = c("a", "b", "c")), id) df <- commit_keyed(df) # Modify the data df$x[1] <- "modified" check_drift(df)
Run the code above in your browser using DataLab