Description Usage Arguments Details Value Author(s) Examples
Helper function.
1 2 3 4 | construct.team.file(scores.file="scores.csv",
add.to.name="",
file="team_template.csv",
ignore="")
|
scores.file |
A single file name or vector of file names which have the match data. The function will throw an error if the column headers are not the same. |
file |
Name to give your team file. |
ignore |
A list of strings to ignore when matching teams. See example. |
add.to.name |
Any text to append to the display names. |
This will determine all the unique team names that differ only by 3 letters in the match files. It will choose 1 as the display name and put the rest in the alt.name columns. The result is a a template of the teams.csv file. This will then need to be edited heavily.
Nothing is output. Only a .csv file is written.
Eli Holmes, Seattle, USA.
eeholmes(at)u(dot)washington(dot)com
1 2 3 4 5 6 7 8 9 10 | ## Not run:
# A list of league match files to read in
file_list = c(
"RCL D1.csv", "RCL D2.csv", "RCL D3.csv", "RCL D4.csv",
"tournaments.csv")
ignore=c()
#use the current directory
construct.team.file(scores.file=file_list, file="team_template.csv", ignore=ignore)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.