Skip to contents

Converts a duration expressed in minutes into a character string in "HH:MM" format.

Usage

function_hours(minutes)

Arguments

minutes

Numeric. Duration expressed in minutes.

Value

A character string representing the duration in "HH:MM" format.

Examples

function_hours(125)
#> [1] "02:05"
# Returns "02:05"