% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ops.R
\name{ops_set_safe_cols}
\alias{ops_set_safe_cols}
\title{Register additional safe columns protected from snapshot-based drops}
\usage{
ops_set_safe_cols(cols = NULL, reset = FALSE)
}
\arguments{
\item{cols}{(character) One or more column names to protect.}

\item{reset}{(logical) If \code{TRUE}, clear the current user-registered
safe list before adding. Default \code{FALSE}.}
}
\value{
Invisibly returns the updated safe cols vector.
}
\description{
Adds column names to the session-level safe list. Columns in this list are
automatically excluded when \code{\link{ops_snapshot_cols}} is used to
build a drop vector, in addition to the built-in protected columns
(\code{"eid"}, \code{"sex"}, \code{"age"}, \code{"age_at_recruitment"}).
}
\examples{
ops_set_safe_cols(c("date_baseline", "townsend_index"))
ops_set_safe_cols(reset = TRUE)  # clear user-registered safe cols
}
