swim_parse_hytek {SwimmeR} | R Documentation |
Formats Hytek style swimming and diving data read with read_results
into a data frame
Description
Takes the output of read_results
and cleans it, yielding a data frame
of swimming (and diving) results
Usage
swim_parse_hytek(
file_hytek,
avoid_hytek = avoid,
typo_hytek = typo,
replacement_hytek = replacement,
format_results = TRUE,
splits = FALSE,
split_length_hytek = split_length,
relay_swimmers_hytek = relay_swimmers
)
Arguments
file_hytek |
output from |
avoid_hytek |
a list of strings. Rows in |
typo_hytek |
a list of strings that are typos in the original results.
|
replacement_hytek |
a list of fixes for the strings in
|
format_results |
should the results be formatted for analysis (special
strings like |
splits |
either |
split_length_hytek |
either |
relay_swimmers_hytek |
should names of relay swimmers be captured?
Default is |
Value
returns a data frame with columns Name
, Place
,
Age
, Team
, Prelims
, Finals
,
Points
, Event
& DQ
. Note all swims will have a
Finals
, even if that time was actually swam in the prelims
(i.e. a swimmer did not qualify for finals). This is so that final results
for an event can be generated from just one column.
See Also
swim_parse_hytek
must be run on the output of
read_results