Turning non-military time to military time

Here is a link that explains what reproducible example is and how to make one:

The problem right now is that I can't copy-paste your example to R and work with it there. So, you should build an example of a dataframe (with 5 rows, for example) that I can copy and try different things that might help in your case.

Anyways, I would say that if all you need to do is to find times between 11 and 13 then it is easiest to extract hour out of the column Time (?) and add 12 if it is PM in column AM/PM. You can use dplyr::case_when for that inside of dplyr::mutate.

1 Like