fixhour {leafSTAR} | R Documentation |
Convert the hour from sexagesimal character to decimal numeric format.
fixhour(x, seconds = FALSE)
x |
A character vector with the hour expressed as sexagesimal characters HH:MM or HH:MM:SS. |
seconds |
Logical. Is the hour expressed as HH:MM:SS ( |
Silvia Santamaria Bueno.
datahours<-c("00:30","10:00","18:20","20:55")
datahours_fixed<-fixhour(datahours,seconds=FALSE)
#fixhour()