I have a table that looks like this:
|Condition|Session|Time|
| A| 1| 100|
| A| 1| 200|
| B| 2| 200|
| B| 2| 300|
| B| 2| 500|
| A| 3| 300|
| A| 4| 200|
I'd like to convert it to the following format:
| A| B| A| A|
| 1| 2| 3| 4|
| 100| 200| 300| 200|
| 200| 300| | |
| | 500| | |
Meaning that the first two rows are "Condition" and "Session", and the rest of the rows represent the "Time" column (variable number of rows).
How can I achieve this in R?