title: delete some rows from a character array in R
body: <p>I have a file containing some csv datas and some text information.
  The file contains the following data:</p>
  
  <pre><code>name:russel date:21-2-1991
  abc,2,saa
  anan,3,ds
  ama,ds,az
  ,,
  
  name:rus date:23-3-1998
  snans,32,asa
  asa,2,saz
  </code></pre>
  
  <p>Because of it contains some extra text information i cannot read that file using read.csv() method in R. So i read that file using </p>
  
  <pre><code>text &lt;- readLines("samplepf.csv")
  lines &lt;- scan(text = text, what = character())
  </code></pre>
  
  <p>Now i want to remove all the unwanted information from the character array "lines". I want only the data in the csv format.
  what is the code i need to use to check all the data very quickly?</p>