fixhour: Fix the hour format

Description Usage Arguments Author(s) See Also Examples

View source: R/fixhour.R

Description

Convert the hour from sexagesimal character to decimal numeric format.

Usage

1
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 (seconds=TRUE) or as HH:MM (seconds=FALSE)? Defaults to FALSE.

Author(s)

Silvia Santamaria Bueno.

See Also

fixfile

Examples

1
2
3
datahours<-c("00:30","10:00","18:20","20:55")
 datahours_fixed<-fixhour(datahours,seconds=FALSE)
#fixhour()

leafSTAR documentation built on May 2, 2019, 3:35 p.m.

Related to fixhour in leafSTAR...