I am trying to make a table from wide to long but i need to create a new column to hold the data description.
es0 es1 es2 es3
1 2 a b
2 3 c a
a b 1 3
into
es0 1
es0 2
es0 a
es1 2
es1 3
es1 b
es2 a
es2 c
...
I can't seem to wrap my head around how to do this with a new column. all the methods i found while searching using gather, pivot_longer, melt, smelt... etc all needed a "key" column to flip on