title: Converting long to wide when some observations have more than one time variable
body: <p>I have a dataset where I just want each ID to have one row. Some of them have 2 of a different ID, and I want to make the dataset wide like in the sample output below.</p>
  <pre><code>ID.   other_ID.  height   color 
  44    57          56      blue
  32    99          28      green
  66    23          19      yellow
  66    56          5       purple
  80    43          7       green 
  
  </code></pre>
  <pre><code>ID    other_ID    other_ID2   height1    height2    color1    color2 
  44     57           NA           56        NA        blue      NA
  32     99           NA           28        NA        green     NA
  66     23           56           19        5         yellow    purple
  80     43           NA           7         NA        green     NA 
  
  </code></pre>