I am unsure how to word this question.
I have data that looks like the following:
     |type1|type2|type3|
------------------------
var1 |  N1 |  N2 |  N3
var2 |  N4 |  N5 |  N6
.    |  .  |  .  |  .
.    |  .  |  .  |  .
.    |  .  |  .  |  .
I want to turn it into this:
     | type | val |
-------------------
var1 | type1| N1  |
var1 | type2| N2  |
var1 | type3| N3  |
var2 | type1| N4  | 
var2 | type2| N5  | 
var2 | type3| N6  |
.    |  .   |  .  |
.    |  .   |  .  |
.    |  .   |  .  |
How can I go about this?
 
    