mmss_format: Formatting seconds as mm:ss.hh

View source: R/mmss_format.R

mmss_formatR Documentation

Formatting seconds as mm:ss.hh

Description

Takes a numeric item or list of numeric items representing seconds (e.g. 95.37) and converts to a character string or list of strings in swimming format ("1:35.37").

Usage

mmss_format(x)

Arguments

x

A number of seconds to be converted to swimming format

Value

the number of seconds x converted to conventional swimming format mm:ss.hh

See Also

sec_format mmss_format is the reverse of sec_format

Examples

mmss_format(95.37)
mmss_format(200.95)
mmss_format(59.47)
mmss_format(c(95.37, 200.95, 59.47, NA))


SwimmeR documentation built on March 31, 2023, 8:27 p.m.