Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

formatRt

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")

MSnbase

Base Functions and Classes for Mass Spectrometry and Proteomics

v2.16.1
Artistic-2.0
Authors
Laurent Gatto, Johannes Rainer and Sebastian Gibb with contributions from Guangchuang Yu, Samuel Wieczorek, Vasile-Cosmin Lazar, Vladislav Petyuk, Thomas Naake, Richie Cotton, Arne Smits, Martina Fisher, Ludger Goeminne, Adriaan Sticker and Lieven Clement.
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.