View source: R/samms_swim_parse.R
| swim_parse_samms | R Documentation |
read_results into a
dataframeTakes the output of read_results of S.A.M.M.S. results and cleans it,
yielding a dataframe of swimming (and diving) results
swim_parse_samms(
file_samms,
avoid_samms = avoid,
typo_samms = typo,
replacement_samms = replacement,
format_samms = format_results
)
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 |
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.
swim_parse must be run on the output of
read_results
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.