minute_to_time: minute_to_time

View source: R/dive_utils.R

minute_to_timeR Documentation

minute_to_time

Description

Transform minute variable into a character string in hour format.

Usage

minute_to_time(time, sec = TRUE, sep = c(":", "h"), day = TRUE)

Arguments

time

positive numeric value in minute

sec

add the sec part of the string.

sep

':' by default, choice between ':' and 'h'. Only affect only the first separator character

day

TRUE by default, allow to set time in a day period (betwwen 00h00 and 23:59)

Value

character string

Author(s)

Jaunatre Maxime <maxime.jaunatre@yahoo.fr>

Examples

minute_to_time(130.5, sec = TRUE)
minute_to_time(130.5, sec = FALSE)
minute_to_time(130.5, sec = TRUE, sep = 'h')
minute_to_time(130.5, sec = FALSE, sep = 'h')
minute_to_time(1440, sec = FALSE, sep = 'h')
minute_to_time(1664, sec = FALSE, sep = 'h')


gowachin/DiveR documentation built on March 26, 2022, 3:53 a.m.