% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_scale_df.R
\name{scale_df}
\alias{scale_df}
\title{Scale numeric variables in a data frame}
\usage{
scale_df(x, center = TRUE, scale = TRUE)
}
\arguments{
\item{x}{A data frame or matrix.}

\item{center}{Logical; if TRUE, center the variables.}

\item{scale}{Logical; if TRUE, scale the variables.}
}
\value{
An object of the same class as \code{x}.
}
\description{
Applies \code{base::scale()} to numeric, integer, or
logical columns in a data frame. Non-numeric columns are left
unchanged.
}
\details{
If \code{x} is not a data frame, \code{base::scale()} is applied directly.
}
\examples{
scale_df(iris)

}
\concept{data_handling}
