Learn R Programming

SwimmeR (version 0.14.2)

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

Value

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

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

See Also

splash_determine_indent_length runs inside of swim_parse_splash