Minutes under an hour, such as 45 min, and hours from there, such as 1.5 h and
312 h, with one decimal under 100 hours. NA is a dash.
Examples
rghcard:::fmt_duration(c(0.4, 45, 90, 18720, NA))
#> [1] "0 min" "45 min" "1.5 h" "312 h" "–"
Minutes under an hour, such as 45 min, and hours from there, such as 1.5 h and
312 h, with one decimal under 100 hours. NA is a dash.
rghcard:::fmt_duration(c(0.4, 45, 90, 18720, NA))
#> [1] "0 min" "45 min" "1.5 h" "312 h" "–"