I'm having trouble stacking 10 columns in R into two columns of 5 where each column relates. Basically I have something like:
Name1, ID1, Name2, ID2, Name3, ID3, Name4, ID4, Name5, ID5
And I need to stack them in to a Name and ID table where the values in each Name column still match its ID counterpart. What would be the best way to approach this?
Thanks!