I read data from an xls file. Apparently, the time is not in the right format. It is as follows (for example)
0.3840277777777778
0.3847222222222222
0.3854166666666667
Indeed, they should be
09:12
09:13
09:13
I don't know how to convert it to the right format. I searched several threads and all of them are about converting the date (with/without time) to the right format.
Can somebody give me any clues?
You can use as.POSIXct after having multiplied your number by the number of seconds in a day (60 * 60 * 24)
For people who want the opposite way: given the 09:13:00, get 0.3840278
Essentially, the idea is that one whole day is 1,so noon (12pm) is 0.5.
Another option is
times
fromchron
To strip off the seconds,
data