title: Split date-time column into Date and time variables
body: <p>I have a 'date-time column 'Start' in the format &quot;Y-m-d H:M:S&quot;. I want to split this column into a &quot;Date&quot; and a &quot;time&quot; column.</p>
  <p>I have tried the following:</p>
  <pre><code>df$Date &lt;- sapply(strsplit(as.character(df$Start), &quot; &quot;), &quot;[&quot;, 1)
  df$Time &lt;- sapply(strsplit(as.character(df$Start), &quot; &quot;), &quot;[&quot;, 2)
  </code></pre>
  <p>This works, however, if I use the function <code>str(df)</code></p>
  <pre><code># 'data.frame':   18363 obs. of  19 variables:&lt;br&gt;
  #  $ Start    : Factor w/ 67 levels &quot;2013-09-01 08:07:41.000&quot;,..: 1 1 1 1 1 1 1 1 1 1 ...
  # [snip]
  </code></pre>
  <p>So now I only need to know how to convert the time and date from <code>factor</code> to 'time' and 'date'.</p>