time_to_dbl: Convert time to decimal

Description Usage Arguments Value Author(s) Examples

Description

Converts time in the form "HH h MM min" to hours in decimal form

Usage

1

Arguments

t

A character vector of times in the form "HH h\[ MM min\]" or "X.Y"

Value

A numeric vector of times in hour-decimal form

Author(s)

Drew T. Doering, [email protected]

Examples

1
2
3
time_to_dbl("12 h 1 min")
t <- c("0 h", "0 h 45 min", "1 h 30 min")
time_to_dbl(t)

dtdoering/grofitr documentation built on May 7, 2019, 9:48 p.m.