title: converting datetime string to POSIXct date/time format in R
body: <p>Consider a string in the format </p>
  
  <pre><code>test &lt;- "YYYY-MM-DDT00:00:00.000-08:00"
  </code></pre>
  
  <p>My goal is to convert those strings to <code>POSIXct</code> format so that I can plot the data. my initial thought was to use</p>
  
  <pre><code>as.POSIXct(test)
  </code></pre>
  
  <p>...but that seems to truncate the datetime to just date. Any thoughts? The help info for <code>as.POSIXct</code> seems to imply that the input should be date and time separated by a space, not by a "T". Is this my issue?</p>