title: ifelse statement in time
body: <p>My issue is I'm trying to see if <code>TimeA</code> comes before <code>TimeB</code> so I am doing</p>
  
  <pre><code>ifelse(timeA &lt; timeb, 0, 1)
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>1: In Ops.factor(TimeA, TimeB) : &lt; not meaningful for factors.
  </code></pre>
  
  <p>So how do I convert my time format so that it isn't a factor? My current time format is hh:mm:ss?</p>