[R] transposition problem

Geoff Russell geoffrey.russell at gmail.com
Wed Apr 16 12:27:33 CEST 2008


Hi use Rs,

I have a csv file:

"1989-90","1990-91"
Barley,23,34
Oats,15,16

Which I want to turn into:
    year,  Barley, Oats
1 "1989-90", 23, 15
2 "1990-91",34,16

Transpose doesn't quite do it, is there a standard way?

Cheers,

Geoff Russell



More information about the R-help mailing list