actel (version 1.1.0)

decimalTime: Convert hh:mm:ss time to hh.hhh

Description

Convert hh:mm:ss time to hh.hhh

Usage

decimalTime(input, unit = c("h", "m", "s"))

Arguments

input

Single string or a vector of strings containing hours:minutes or hours:minutes:seconds.

unit

the desired units of the output, one of "h" (hours), "m", (minutes) or "s" (seconds).

Value

A number or vector of numbers corresponding to the decimal hour equivalent of the character input.