I have a dataframe which structure is like this:
Year   Spain   England   Malta
2001   23      24        98
2007   34      99        87
And I want it to become like this one:
Country   Rank   Year
Spain     23     2001
Spain     34     2007
England   24     2001
England   99     2007
Malta     98     2001
Malta     87     2007
Is there a simple/smarter way of doing this using R (with no additional libraries) without having to loop over columns and transpose the columns adding one more name (Countries) to it?
 
     
    