swim_parse_splash {SwimmeR} | R Documentation |
Formats Splash 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_splash(
file_splash,
avoid_splash = avoid,
typo_splash = typo,
replacement_splash = replacement,
format_results = TRUE,
splits = FALSE,
split_length_splash = split_length,
relay_swimmers_splash = relay_swimmers
)
Arguments
file_splash |
output from |
avoid_splash |
a list of strings. Rows in |
typo_splash |
a list of strings that are typos in the original results.
|
replacement_splash |
a list of fixes for the strings in
|
format_results |
should the results be formatted for analysis (special
strings like |
splits |
either |
split_length_splash |
either |
relay_swimmers_splash |
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_splash
must be run on the output of
read_results