% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pvalue_helpers.R
\name{.get_strata_df}
\alias{.get_strata_df}
\title{Internal: extract stratification columns}
\usage{
.get_strata_df(x, stratify = NULL)
}
\arguments{
\item{x}{A data.frame / tibble.}

\item{stratify}{Optional character vector of column names used for stratification.}
}
\value{
If \code{stratify} is \code{NULL} or empty, returns \code{NULL}. Otherwise
returns a data.frame with the selected stratification columns (in the order
given by \code{stratify}). Throws an error if any requested columns are missing.
}
\description{
Returns the subset of \code{x} corresponding to columns named in \code{stratify}.
Used by stratified diagnostics.
}
\keyword{internal}
