title: Converting data from wide to long (using multiple columns)
body: <p>I currently have wide data which looks similar to this: </p>
  
  <pre><code>cid dyad f1 f2 op1 op2 ed1 ed2 junk 
  1   2    0  0  2   4   5   7   0.876
  1   5    0  1  2   4   4   3   0.765
  </code></pre>
  
  <p>etc</p>
  
  <p>And I wish into a long data frame which looks similar to this: </p>
  
  <pre><code>cid dyad f op ed junk  id
  1   2    0 2  5  0.876 1
  1   2    0 4  7  0.876 2
  1   5    0 2  4  0.765 1
  1   5    1 4  3  0.765 2 
  </code></pre>
  
  <p>I have tried using the gather() function as well as the reshape() function but cannot figure out how to create multiple columns instead of collapsing all of the columns into a long style </p>
  
  <p>All help is appreciated </p>