title: Select column 2 to last column in R
body: <p>I have a data frame with multiple columns. Now, I want to get rid of the row.names column (column 1), and thus I try to select all the other columns.</p>
  
  <p>E.g., </p>
  
  <pre><code>newdata &lt;- olddata[,2:10]
  </code></pre>
  
  <p>is there a default symbol for the last column so I don't have to count all the columns?
  I tried</p>
  
  <pre><code>newdata &lt;- olddata[,2:]
  </code></pre>
  
  <p>but it didn't work.</p>