I have a data like this:
1 233
1 333
1 455
1 345
2 543
2 433
2 344
2 400
3 444
3 111
3 000
3 432
I want to change it to this new dataset like this:
1    2    3
233  543  444
333  433  111
455  344  000
345  400  432
How can I do this in R? do any body knows a script for this. please note that my real data is very larger and number of rows is large.
 
     
    