Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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.


actel

Acoustic Telemetry Data Analysis

v1.2.1
GPL-3
Authors
Hugo Flávio [aut, cre] (<https://orcid.org/0000-0002-5174-1197>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.