% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ml_functions.R
\name{ml_prepare_data}
\alias{ml_prepare_data}
\title{Prepare a data frame for machine learning}
\usage{
ml_prepare_data(data, target, features = NULL)
}
\arguments{
\item{data}{A \code{data.frame}.}

\item{target}{Single character string: the response column name.}

\item{features}{Character vector of predictor names. Default: all except target.}
}
\value{
Named list: \code{data}, \code{target}, \code{features}.
}
\description{
Prepare a data frame for machine learning
}
\examples{
prep <- ml_prepare_data(mtcars, target = "mpg")
names(prep)
}
