I have a data frame in the time format. i need to change it to numeric data. I used the following format but i am not sure if it is correct since the values changes in numeric format.
Photoperiod
08:52:41
08:53:35
08:54:33
08:55:36
08:56:44
08:57:55
08:59:11
09:00:31
09:01:55
09:03:23
09:04:55
09:06:31
09:08:10
09:09:53
09:11:40
DF<- read.csv2(file="DF.csv")
DF.a <-as.POSIXct(DF, format = "%H:%M:%S")
library(data.table)
DF.B<- lapply(DF.a , function(x) as.numeric(as.ITime(x)) / 3600)