title: Modifying headers for repeated row values?
body: <p>For example, this is my data:</p>
  
  <pre><code>age     gender       education                   previous_comp_exp   tutorial_time 
  19      Male         Undergraduate               casual gamer        37.93436 
  qID     time_taken   time_to_first_interaction   num_of_interactions answered_correctly 
  sor0    26.27869     14.82285                    4                   TRUE 
  sor5    23.53426     7.422562                    8                   TRUE 
  sor4    24.84502     10.41148                    4                   TRUE 
  </code></pre>
  
  <p>I want to convert to this:</p>
  
  <pre><code>age     gender       education                   previous_comp_exp   tutorial_time      qID.1       time_taken.1     time_to_first_interaction.1     num_of_interactions.1  answered_correctly.1    qID.2       time_taken.2     time_to_first_interaction.2     num_of_interactions.2  answered_correctly.2    qID.3       time_taken.3     time_to_first_interaction.3     num_of_interactions.3 answered_correctly.3
  19      Male         Undergraduate               casual gamer        37.93436           sor0        26.27869         14.82285                        4                       TRUE                   sor5        23.53426         7.422562                        8                      TRUE                    sor4        24.84502         10.41148                        4                     TRUE
  </code></pre>
  
  <p>So in summary, I want row 3 to be a repeated and number of times and added to the headers. And secondly, I want each row entry below row 3 to be moved to the first row under the corresponding repeated column.</p>
  
  <p>Any ideas where to start?</p>