math_format: Formatting mm:ss.th times as seconds

Description Usage Arguments Value Examples

View source: R/math_format.R

Description

Takes a character string (or list) representing time in track format (e.g. 1:35.37) and converts it to a numeric value (95.37) or a list of values representing seconds.

Usage

1

Arguments

x

A character vector of time(s) in track format (e.g. 1:35.93, as minutes:seconds.tenths hundreths) to be converted to seconds (95.93)

Value

returns the value of the string x which represents a time in track format (mm:ss.th) and converts it to seconds

Examples

1
2
3
4
math_format("1:35.93")
math_format("16:45.19")
math_format("25.43")
math_format(c("1:35.93", "16:45.19", NA, "25.43"))

JumpeR documentation built on Nov. 17, 2021, 1:07 a.m.