formatRt {MSnbase} | R Documentation

## Format Retention Time

### Description

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()`.

### Usage

    formatRt(rt)

### Arguments

`rt` | retention time in seconds (`numeric`) or "mm:sec" (`character`).

### Value

A vector of same length as `rt`.

### Author(s)

Laurent Gatto and Sebastian Gibb

### Examples

    formatRt(1524)
    formatRt("25:24")

[Package MSnbase version 2.20.1 Index]