splash_determine_indent_length: Determines indent length for data within 'swim_parse_splash'

View source: R/splash_determine_indent_length.R

splash_determine_indent_lengthR Documentation

Determines indent length for data within swim_parse_splash

Description

In Splash results there are two line types that are of interest and don't begin with either a place or a special string (DNS, DSQ etc.). These are ties and relays swimmers. Relay swimmers are indented further than ties. This function determines the number of spaces, called indent length, prior to a tie row, plus a pad of four spaces.

Usage

splash_determine_indent_length(x, time_score_string)

Arguments

x

output from read_results followed by add_row_numbers

time_score_string

a regular expression as a string that describes swimming times and diving scores

Value

returns a number indicating the number of spaces preceding an athlete's name in a tie row

See Also

splash_determine_indent_length runs inside of swim_parse_splash


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