title: How to select no of rows from Data frame
body: <p>I am reading CSV file and creating a data set
  Yourdata&lt;-read.csv(‘C:/Work/mydat.csv’)
  This have five columns and nearly 100K rows and I want to select only few rows. Like, if I want to select only first 1000 rows then how can extract it in vector to do further processing on it.</p>