title: rename the columns name after cbind the data
body: <p><img src="https://i.stack.imgur.com/GQx6E.jpg" alt="enter image description here"></p>
  
  <pre><code>merger &lt;- cbind(as.character(Date),weather1$High,weather1$Low,weather1$Avg..High,weather1$Avg.Low,sale$Scanned.Movement[a])
  </code></pre>
  
  <p>After <code>cbind</code> the data, the new DF has column names automatically <code>V1</code>, <code>V2</code>...... 
  I want rename the column by </p>
  
  <pre><code>colnames(merger)[,1] &lt;- "Date"
  </code></pre>
  
  <p>but failed. And when I use <code>merger$V1</code> , </p>
  
  <pre><code>Error in merger$V1 : $ operator is invalid for atomic vectors
  </code></pre>