title: Calculate difference between two dates
body: <p>My dates  in the txt file are like, start date= "011589" and end date is "122390". How can I calculate the duration using R.</p>
  
  <p>I tried 
  mydata$startdate=as.Date(mydata$startdate)
  but it did not work</p>