formatRt: Format Retention Time

View source: R/utils.R

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

lgatto/MSnbase documentation built on Nov. 12, 2024, 10:58 a.m.