fixhour {leafSTAR} | R Documentation |
Fix the hour format
Description
Convert the hour from sexagesimal character to decimal numeric format.
Usage
fixhour(x, seconds = FALSE)
Arguments
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 ( |
Author(s)
Silvia Santamaria Bueno.
See Also
Examples
datahours<-c("00:30","10:00","18:20","20:55")
datahours_fixed<-fixhour(datahours,seconds=FALSE)
#fixhour()
[Package leafSTAR version 1.0 Index]