title: Changing the header of a data frame in R
body: <p>I am trying to reformat my data frame in R. My current data frame in R looks like this:</p>
  <pre><code>V1 V2
  1  0
  2  0
  3  0
  4  0
  5  0
  </code></pre>
  <p>However, I am wanting to reformat it so I looks like this:</p>
  <pre><code>variableStep chrom=1
  1    0
  2    0
  3    0
  4    0
  5    0
  6    0
  7    0
  </code></pre>
  <p>Does anyone know how to do this? I have tried using colnames(df) &lt;- 'variableStep chrom=1', however it returns this:</p>
  <pre><code>variableStep chrom=1   
  1                      0
  2                      0
  3                      0
  4                      0
  5                      0
  6                      0
  </code></pre>
  <p>Can anyone help? I just want 'variableStep chrom=1' as a header over both columns, not just one.</p>