formatRt {MSnbase} | R Documentation

## Format Retention Time

### Description

Converts seconds to/from 'min:sec' format

### Usage

    formatRt(rt)

### Arguments

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

.

### Details

This function is used to convert retention times. Conversion is seconds to/from the more human friendly format "mm:sec".

### Value

A vector of same length as `rt`.

### Author(s)

Laurent Gatto <lg390@cam.ac.uk>

### Examples

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

[Package MSnbase version 2.15.7 Index]