% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/load-survey-utils.R
\name{find_unique_key}
\alias{find_unique_key}
\title{Find the minimal unique key for a data.table}
\usage{
find_unique_key(data, base_id = "part_id")
}
\arguments{
\item{data}{A data.table}

\item{base_id}{The base identifier column name (default: "part_id")}
}
\value{
A character vector of column names that form the unique key
}
\description{
Given a data.table and a base identifier column, finds the minimal set of
additional columns needed to uniquely identify each row.
}
\keyword{internal}
