% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/panel_utils.R
\name{.diff_panel}
\alias{.diff_panel}
\title{Panel-aware differencing}
\usage{
.diff_panel(panel, vars, k = 1L)
}
\arguments{
\item{panel}{A panel data.frame from \code{.make_panel()}.}

\item{vars}{Character vector of column names to difference.}

\item{k}{Integer difference order (default 1).}
}
\value{
A data.frame (or vector if single var) of differenced values.
}
\description{
Computes k-th differences within each cross-sectional unit.
}
\keyword{internal}
