I'm trying to reshape table from
col1| col2|col3|id
v1 | v2 | v3 |1
v2 | v1 | v3 |2
to
col1|col2|id
v1 | v2 | 1
v2 | v3 | 1
v2 | v1 | 2
v1 | v3 | 2
Basically create pair of following columns for each id.
Sorry for not clear title, but not sure how to describe what I'm trying to do.