title: Categorizing Data in R between two time periods
body: <p>I am trying to create a new column in my dataframe and have it show either &quot;DENTRO HORÁRIO&quot; or &quot;FUERA HORÁRIO&quot; when it is between a certain time or if it is outside that time. I thought the best way to do that would be an ifelse statement but I keep getting errors, what is the best way to do this?</p>
  <pre><code>Start1 &lt;- format('7:00:00', format = '%H:%M:%S')
  End1 &lt;- format('19:00:00', format = &quot;%H:%M:%S&quot;)
  Ready_For_Audit$Alistamiento.horario.habil.o.fuera.horario &lt;- Ready_For_Audit %&gt;% 
  ifelse(Start1&lt;=format(Hora.solicitud, format = '%H:%M:%S')&lt;=End1,
  &quot;DENTRO HORÁRIO&quot;, &quot;FUERA HORÁRIO&quot;)
  </code></pre>