For example I have a data frame on the ratings of TV shows in three countries (12 tv shows in each country) as below.
Austria Belgium Canada
102.71 103.87 470.49
103.21 106.06 483.52
109.86 114.1 492.41
194.1 119.98 498.56
198.69 204.92 503.6
202.52 209.21 608.15
205.62 222.59 612.21
208.34 225.91 615.78
211.09 298.63 619.1
213.31 321.68 622.01
215.65 324.28 624.78
217.88 326.7 627.46
I want to transform this data frame into a two-column data frame: one column for ratings and one column for corresponding countries, for example:
Ratings Countries
102.71 Austria
103.21 Austria
....
103.87 Belgium
...
I tried package reshape but cannot get what I want. Thanks!