Data Import, Cleaning, and Conversions for Swimming Results
Add dummy entry rows
Add row numbers to raw results
Formatting yyy-mm ages as years
Helper function for formatting yyy-mm ages as years, enables vectoriza...
Regularizes event names
Combined paired sets of columns following a join operation
Combined paired sets of columns following a join operation
Collects relay swimmers as a data frame within swim_parse
Collects relay swimmers as a data frame within swim_parse_old
Collects relay swimmers as a data frame within swim_parse_omega
Collects relay swimmers as a data frame within swim_parse_splash
Changes lengths associated with splits to new values
Changes lengths associated with splits to new values
Swimming Course Converter
Course converter, returns data frame - defunct
Swimming Course Convertor Helper
Discards elements of list that have an error value from `purrr::safely...
Adds places to diving results
Creates a bracket for tournaments involving 5 to 64 teams, single elim...
Pulls out event labels from text
Pulls out event labels from text
Fills NA values with previous non-NA value
Shifts non-NA values to left in data frame
Fold a vector onto itself
Formats data for analysis within swim_parse
Create a one-line data frame containing an entry to be appended to an ...
Find the mode (most commonly occurring) element of a list
"Not in" function
Pulls out heat labels from text
Parses Hy-Tek .hy3 files
Helper for reading prelims and finals places from Hy-Tek .hy3 files
Helper for reading prelims and finals times from Hy-Tek .hy3 files
Cleans input strings
Sort data in DQ lists of length 3 within hytek_swim_parse
Sort data in lists of length 3 within hytek_swim_parse
Sort data in DQ lists of length 4 within hytek_swim_parse
Sort data in lists of length 4 within hytek_swim_parse
Sort data in lists of length 5 within hytek_swim_parse
Sort data in lists of length 6 within hytek_swim_parse
Sort data in lists of length 7 within hytek_swim_parse
Sort data in lists of length 8 within hytek_swim_parse
Sort data in lists of length 9 within hytek_swim_parse
Helper for reading interleaving prelims and finals results
Determines if a link is valid
Sorts and collects lines by performance and row number
Breaks out lists of lists by sub-list length
Initialize a named list of lists
Transform list of lists into data frame
Determine optimal entries against a given opponent lineup
Determine optimal entries against a given opponent lineup
Assign overpowered entries
Formatting seconds as mm:ss.hh
Pads shorter lists in a list-of-lists with NA
s such that all lists a...
Orders all names as "Firstname Lastname"
Pipe operator
Add places to results
Pulls out reaction times from text
Read in html files of swimming results
Read in hy3 files of swimming results
Read in pdf files of swimming results
Reads swimming and diving results into a list of strings in preparatio...
used to indicate that results have been read in with read_results
pri...
Replaces superseded rows
Scores a swim meet
Formatting mm:ss.tt times as seconds
Helper function for formatting mm:ss.hh times as seconds, used to enab...
Cleans input strings
Collects Splash format splits
Determines indent length for data within swim_parse_splash
Sort data in lists of length 10 within splash_swim_parse
Sort data in lists of length 11 within splash_swim_parse
Sort data in lists of length 12 within splash_swim_parse
Sort data in lists of length 4 within spash_swim_parse
Sort data in lists of length 5 within spash_swim_parse
Sort data in lists of length 6 within spash_swim_parse
Sort data in lists of length 7 within spash_swim_parse
Sort data in lists of length 8 within spash_swim_parse
Sort data in lists of length 9 within spash_swim_parse
Collects splits within swim_parse
Collects splits within swim_parse_ISL
Collects splits for relays within swim_parse_omega
Collects splits within swim_parse_splash
for Splash results
Produces data frames of splits within swim_parse_splash
for Splash r...
Produces data frames of splits within swim_parse_splash
for Splash r...
Collects splits for relays within swim_parse_splash
Adds together splits and compares to listed finals time to see if they...
Advances split names by one split_length
Converts splits from lap to cumulative format
Helper function for converting lap splits to cumulative splits
Converts splits from cumulative to lap format
Helper function for converting cumulative splits to lap splits
Formats swimming and diving data read with read_results
into a data ...
Formats Hytek style swimming and diving data read with read_results
i...
Formats swimming results from the International Swim League ('ISL') re...
Formats swimming and diving data read with read_results
into a data ...
Formats Omega style swimming and diving data read with read_results
i...
Formats swimming and diving data read with read_results
into a dataf...
Formats Splash style swimming and diving data read with read_results
...
Add places to swimming results
Defunct functions in SwimmeR
Deprecated functions in SwimmeR
Rescore to account for ties
Formats Hytek style swimming and diving Top Times reports read with `r...
Undoes interleaving of lists
Create a one-line data frame containing an entry to be appended to an ...
The goal of the 'SwimmeR' package is to provide means of acquiring, and then analyzing, data from swimming (and diving) competitions. To that end 'SwimmeR' allows results to be read in from .html sources, like 'Hy-Tek' real time results pages, '.pdf' files, 'ISL' results, 'Omega' results, and (on a development basis) '.hy3' files. Once read in, 'SwimmeR' can convert swimming times (performances) between the computationally useful format of seconds reported to the '100ths' place (e.g. 95.37), and the conventional reporting format (1:35.37) used in the swimming community. 'SwimmeR' can also score meets in a variety of formats with user defined point values, convert times between courses ('LCM', 'SCM', 'SCY') and draw single elimination brackets, as well as providing a suite of tools for working cleaning swimming data. This is a developmental package, not yet mature.