Skip to content
Prev 175523 / 398506 Next

Convert date to integer

Hello, I have a dataframe containing dates, times and other parameters. The
times have the format "h:m", e.g. 13:00 or 5:30, R classes them as factors.
I want to change the times to integers e.g. 13:00 -> 1300. I tried to use
"chron" to create a chronological object, but it didn't work for the times
(yust for the dates). 

-----
Tamara Hoebinger
University of Vienna