title: How do I rename the column 0 in a dataframe?
body: <p>I have a dataframe with 4 columns. How do I give the first column a name?</p>
  
  <p><a href="https://i.stack.imgur.com/pN9JG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pN9JG.png" alt="enter image description here"></a></p>
  
  <p>I tried using <code>dplyr</code> but it doesn't work.</p>
  
  <pre><code>colnames(df)[0] &lt;- "Test"
  </code></pre>