swim_parse_samms {SwimmeR} | R Documentation |
Formats swimming and diving data read with read_results
into a
dataframe
Description
Takes the output of read_results
of S.A.M.M.S. results and cleans it,
yielding a dataframe of swimming (and diving) results
Usage
swim_parse_samms(
file_samms,
avoid_samms = avoid,
typo_samms = typo,
replacement_samms = replacement,
format_samms = format_results
)
Arguments
file_samms |
output from |
avoid_samms |
a list of strings. Rows in |
typo_samms |
a list of strings that are typos in the original results.
|
replacement_samms |
a list of fixes for the strings in |
format_samms |
should the data be formatted for analysis (special
strings like |
Value
returns a data frame with columns Name
, Place
,
Age
, Team
, Prelims
, Finals
,
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
must be run on the output of
read_results