Learn R Programming

SwimmeR (version 0.14.2)

mmss_format: 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)

Value

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

Arguments

x

A number of seconds to be converted to swimming format

See Also

sec_format mmss_format is the reverse of sec_format

Examples

Run this code
mmss_format(95.37)
mmss_format(200.95)
mmss_format(59.47)
mmss_format(c(95.37, 200.95, 59.47, NA))

Run the code above in your browser using DataLab