title: skip last 10 rows for read in csv file (unknown number of rows)
body: <p>i knew that there is options <code>skip</code> for <code>read.csv()</code></p>
  
  <p>I knew how to do for skip first 10 rows as follow:</p>
  
  <pre><code>data2&lt;-read.csv("book4.csv", skip=10, header=T)
  </code></pre>
  
  <p>How about for skipping last 10 rows?</p>
  
  <p>My approach is </p>
  
  <pre><code>data2 &lt;- data2[1:(dim(data2)[1]-10),]
  </code></pre>
  
  <p>Is there any alternative way?</p>
  
  <p>Thanks</p>