course_convert_helper: Swimming Course Convertor Helper

View source: R/course_conversions.R

course_convert_helperR Documentation

Swimming Course Convertor Helper

Description

Used to convert times between Long Course Meters, Short Course Meters and Short Course Yards

Usage

course_convert_helper(time, event, course, course_to, verbose = FALSE)

Arguments

time

A time, or vector of times to convert. Can be in either seconds (numeric, 95.97) format or swim (character, "1:35.97") format

event

The event swum as "100 Fly", "200 IM", "400 Free", "50 Back", "200 Breast" etc.

course

The course in which the time was swum as "LCM", "SCM" or "SCY"

course_to

The course to convert the time to as "LCM", "SCM" or "SCY"

verbose

If TRUE will return a data frame containing columns

  • Time

  • Course

  • Course_To

  • Event

  • Time_Converted_sec

  • Time_Converted_mmss

. If FALSE (the default) will return only a converted time.

Value

returns the time for a specified event and course converted to a time for the specified course_to in swimming format OR a data frame containing columns

  • Time

  • Course

  • Course_To

  • Event

  • Time_Converted_sec

  • Time_Converted_mmss

depending on the value of verbose

See Also

course_convert_helper is a helper function inside course_convert


gpilgrim2670/SwimmeR documentation built on March 26, 2023, 5:05 p.m.