Tags / reshape2
Transforming a Dataset from Long to Wide Format with All Combinations in R
Transposing from Long to Wide and Aggregating Rows with Matching ID in R: A Comprehensive Guide
Here's a summary of the provided information and some additional examples to demonstrate the usage of the `melt()` function in R: