Skip to contents

Calculation is simple, but the minutes/seconds math somewhat cumbersome

Usage

km_to_mi(m, s = 0, d = 1)

mi_to_km(m, s = 0, d = 1)

Arguments

m

Minutes

s

Seconds (default: 0)

d

Distance (default: 1)

Examples

km_to_mi(3, 50)
#> [1] "6M 10S"
mi_to_km(6)
#> [1] "3M 44S"