% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ops.R
\name{ops_snapshot_diff}
\alias{ops_snapshot_diff}
\title{Compare column names between two snapshots}
\usage{
ops_snapshot_diff(label1, label2)
}
\arguments{
\item{label1}{(character) Label of the earlier snapshot.}

\item{label2}{(character) Label of the later snapshot.}
}
\value{
A named list with two character vectors: \code{added} (columns
present in \code{label2} but not \code{label1}) and \code{removed}
(columns present in \code{label1} but not \code{label2}).
}
\description{
Returns lists of columns added and removed between two recorded snapshots.
}
\examples{
dt <- ops_toy(n = 100)
ops_snapshot(dt, label = "raw")
dt <- derive_missing(dt)
ops_snapshot(dt, label = "derived")
ops_snapshot_diff("raw", "derived")
# $added   — newly derived columns
# $removed — columns dropped between snapshots
}
