This function is used to convert retention times. Conversion is
seconds to/from the more human friendly format "mm:sec". The
implementation is from MsCoreUtils::formatRt()
.
formatRt(rt)
retention time in seconds (numeric
) or "mm:sec"
(character
).
A vector of same length as rt
.
formatRt(1524)
#> [1] "25:24"
formatRt("25:24")
#> [1] 1524