A user-friendly wrapper around stats::reshape to convert data from
long format back to wide format.
Arguments
- data
A data frame in long format.
- within
The name of the column containing within-subjects factor levels (e.g., "Condition").
- value
The name of the column containing measurement values (e.g., "Value").
- id
The identifier columns (e.g., "Subject", "Group"). If NULL, inferred as all columns except
withinandvalue.