title: R: How to skip specific rows when using read.table on CSV file?
body: <p>I have searched many fora, but still couldn't find a clear answer to my question: In R, how to skip specific rows when using read.table on a CSV file? For example, I have a CSV file with 4000 rows and I only want to read in the first 2000 files.</p>
  
  <p>I know that with</p>
  
  <blockquote>
    <p>read.table(data, skip = 6)</p>
  </blockquote>
  
  <p>the first lines can be skipped, but how can I skip all rows from 2001? And how can I skip a specific row, say row 1500?</p>