title: How to convert my data in R
body: <p>I have a data which has the format like this , in order to be able to visualise the data I need to change the formatting to something like the second example, do you know how I can change the formatting like that ?</p>
  
  <pre><code>The first row is Age range
  0–14    15–24   25–34   35–44   45–54   55–64   65 years and over   
  1,873.4 1,088.4 1,296.4 1,157.2 1,207.5 1,177.5 1,498.7 
  513.0   351.8   339.1   419.1   485.0   624.1   925.7   
  1,049.9 666.4   594.2   682.9   645.7   650.2   727.1   
  422.6   287.7   354.1   344.9   400.6   411.5   528.3   
  2,069.1 1,234.7 1,429.0 1,310.3 1,323.1 1,229.6 1,514.9 
  178.0   306.8   253.8   248.9   178.5   75.2    42.1    
  2,247.2 1,541.5 1,682.9 1,559.2 1,501.5 1,304.8 1,557.0 
  </code></pre>
  
  <p>How I can convert my data to look like this:</p>
  
  <pre><code>Age     Count
  0-14    1,873.4
  15-24   1,088.4
  25-34   1,296.4
  35-44   1,157.2
  45-54   1,207.5
  55-64   1,177.5
  65+     1,498.7
  0-14    513.0
  15-24   351.8
  25-34   339.1
  35-44   419.1
  45-54   485.0
  55-64   624.1
  65+     925.7
  0-14    1,049.0
  15-24   666.4
  25-34   594.2
  35-44   682.9
  45-54   645.7
  55-64   650.2
  65+     727.1
  0-14    422.6
  15-24   287.7
  25-34   354.1
  35-44   344.9
  45-54   400.6
  55-64   411.5
  65+     528.3
  </code></pre>