% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/audit-diff.R
\name{audit_diff}
\alias{audit_diff}
\alias{print.audit_diff}
\title{Compare Two Audit Trail Snapshots}
\usage{
audit_diff(.trail, from, to)

\method{print}{audit_diff}(x, ...)
}
\arguments{
\item{.trail}{An \code{\link[=audit_trail]{audit_trail()}} object.}

\item{from}{Label (character) or index (integer) of the first snapshot.}

\item{to}{Label (character) or index (integer) of the second snapshot.}

\item{x}{An \code{audit_diff} object to print.}

\item{...}{Additional arguments (currently unused).}
}
\value{
An \code{audit_diff} object (S3 list).
}
\description{
Computes detailed differences between any two snapshots in an audit trail,
including row/column/NA deltas, columns added/removed, type changes,
per-column NA changes, and numeric distribution shifts.
}
\examples{
trail <- audit_trail("example")
mtcars |>
  audit_tap(trail, "raw") |>
  dplyr::filter(mpg > 20) |>
  audit_tap(trail, "filtered")
audit_diff(trail, "raw", "filtered")

}
\seealso{
Other audit trail:
\code{\link[=audit_report]{audit_report()}},
\code{\link[=audit_tap]{audit_tap()}},
\code{\link[=print.audit_snap]{print.audit_snap()}},
\code{\link[=tab_tap]{tab_tap()}}
}
\concept{audit trail}
