title: how to convert factor into DateTime in R?
body: <p>This question might be simple for some of you but bear with me since I'm a beginner in R.</p>
  
  <p>I have a dataframe that has a factor column (called time) containing DateTime data as the following:</p>
  
  <pre><code>time
  01/01/2011 00:10
  02/01/2011 03:00
  03/01/2011 05:00
  04/01/2011 10:03
  </code></pre>
  
  <p>I want to convert this column into DateTime column in R. I searched and tried some functions but it gives me 'NA' results. The following functions are those I tried:</p>
  
  <pre><code>&gt; dataframe1$datetime &lt;- as.POSIXlt(as.character(dataframe1$time), format="%d/%m/%Y %H:%M")
  &gt; dataframe1$datetime &lt;- as.POSIXlt(strptime(dataframe1$time), format="%d/%m/%Y %H:%M")
  &gt; dataframe1$datetime &lt;- as.POSIXlt(dataframe1$time, format="%d/%m/%Y %H:%M")
  &gt; dataframe1$datetime &lt;- as.chron(dataframe1$time, "%d/%m/%Y %H:%M")
  </code></pre>
  
  <p>I don't know what else to try. I want ideally to add three columns namely datetime, date, and time.</p>