title: Compare time in R
body: <p>I have two columns, say A and B (time in HH:MM format)</p>
  
  <pre><code>  A       B
  00:00   06:00
  </code></pre>
  
  <p>str(A) and str(B) gives "character."</p>
  
  <p>I want to make a comparison like,e.g.,</p>
  
  <pre><code>Comment &lt;- ifelse(hour_part(A) &lt; hour_part(B), "Dead","NONE")
  </code></pre>
  
  <p>I want to do it in R.</p>
  
  <p>How can this be done in R?</p>