title: Error in converting character to time variable in r with Lubridate packages
body: <p>Thanks for your help.</p>
  <p>One of variable in my dataset looks like this:</p>
  <pre><code>&gt; df$TM
  &gt; [1] &quot;000054&quot; &quot;000020&quot; &quot;000056&quot; &quot;000051&quot; &quot;000025&quot; &quot;000116&quot; &quot;000219&quot; &quot;000207&quot; &quot;000233&quot; &quot;000206&quot; &quot;000142&quot; &quot;000126&quot; &quot;000237&quot; &quot;000215&quot; &quot;000236&quot; &quot;000246&quot; &quot;000219&quot;
   [18] &quot;000227&quot; &quot;000803&quot; &quot;000920&quot;... 
  </code></pre>
  <p>The real meaning of each character is hours, minutes and seconds.</p>
  <p>When I adjust hms function in Lubridates as follows</p>
  <pre><code>&gt; df$TM &lt;- hms(df$TM)
  </code></pre>
  <blockquote>
  <p>Warning message is coming: &quot;In .parse_hms(..., order = &quot;HMS&quot;, quiet = quiet) :
  Some strings failed to parse, or all strings are NAs&quot;</p>
  </blockquote>
  <p>After that, all the values in the column changes to NA.</p>
  <p>I also tried</p>
  <pre><code>&gt; df$TM &lt;- as.POSIXct(df$TM, format = &quot;%H:%M:%S&quot;)
  </code></pre>
  <p>and</p>
  <pre><code>&gt; df$TM &lt;- chronicle(times = df$TM)
  </code></pre>
  <p>and</p>
  <pre><code>&gt; df$TM &lt;- strptime(df$TM, format = &quot;%H:%M:%S&quot;)
  </code></pre>
  <p>but... these three trial also have same results.</p>
  <p>(Actually all data has changed to NA, so warning message is same as error message to me)</p>
  <p>I really appreciate your help.</p>