View source: R/splash_determine_indent_length.R
splash_determine_indent_length | R Documentation |
swim_parse_splash
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.
splash_determine_indent_length(x, time_score_string)
x |
output from |
time_score_string |
a regular expression as a string that describes swimming times and diving scores |
returns a number indicating the number of spaces preceding an athlete's name in a tie row
splash_determine_indent_length
runs inside of
swim_parse_splash
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.