read_results
into a data frameTakes the output of read_results
and cleans it, yielding a data frame
of swimming (and diving) top times
toptimes_parse_hytek(
file_hytek_toptimes,
avoid_hytek_toptimes = avoid,
typo_hytek_toptimes = typo,
replacement_hytek_toptimes = replacement
)
returns a data frame with columns Rank
, Result
,
Name
, Age
, Date
Meet
& Event
. Top Times
reports do not designate Team.
output from read_results
a list of strings. Rows in
file_hytek_toptimes
containing these strings will not be included.
For example "Pool:", often used to label pool records, could be passed to
avoid_hytek_toptimes
. The default is avoid_default
, which
contains many strings similar to "Pool:", such as "STATE:" and "Qual:".
Users can supply their own lists to avoid_hytek_toptimes
.
avoid_hytek_toptimes
is handled before typo_hytek_toptimes
and replacement_hytek_toptimes
.
a list of strings that are typos in the original
results. swim_parse
is particularly sensitive to accidental double
spaces, so "Central High School", with two spaces between "Central" and
"High" is a problem, which can be fixed. Pass "Central High School" to
typo_hytek_toptimes
. Unexpected commas as also an issue, for example
"Texas, University of" should be fixed using typo_hytek_toptimes
and
replacement_hytek_toptimes
a list of fixes for the strings in
typo_hytek
. Here one could pass "Central High School" (one space
between "Central" and "High") and "Texas" to
replacement_hytek_toptimes
fix the issues described in
typo_hytek_toptimes
toptimes_parse_hytek
must be run on the output of
read_results