formatRt: Format Retention Time

Description Usage Arguments Details Value Author(s) Examples

View source: R/utils.R

Description

Converts seconds to/from 'min:sec' format

Usage

1

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

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

MSnbase documentation built on Jan. 23, 2021, 2 a.m.