% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_utils.R
\name{to_wide}
\alias{to_wide}
\title{Convert Long Data to Wide Format}
\usage{
to_wide(data, within = "Condition", value = "Value", id = NULL)
}
\arguments{
\item{data}{A data frame in long format.}

\item{within}{The name of the column containing within-subjects factor levels (e.g., "Condition").}

\item{value}{The name of the column containing measurement values (e.g., "Value").}

\item{id}{The identifier columns (e.g., "Subject", "Group"). If NULL, 
inferred as all columns except \code{within} and \code{value}.}
}
\value{
A data frame in wide format.
}
\description{
A user-friendly wrapper around \code{stats::reshape} to convert data from
long format back to wide format.
}
