readSwissTournament: Read files of the SWISS tournament software

Description Usage Arguments Details Value Author(s) Examples

View source: R/SWISS.R

Description

readSwissTournament returns all entries of a SWISS tournament. summary returns a ranking summary of a SWISS tournament.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
readSwissTournament(filename)

## S3 method for class 'SwissTournament'
summary(object, ...)

## S3 method for class 'SwissTournament'
print(x, fullReport = FALSE, ...)

## S3 method for class 'SwissTournamentSummary'
print(x, fullReport = FALSE, ...)

Arguments

filename

(character) name of the XML file returned by the program

object

a valid SwissTournament object

...

additional possible parameters passed on to other functions (not used yet)

x

a valid SwissTournament or SwissTournamentSummary object

fullReport

(logical) print a full ranking over each round or only the latest ranking

Details

The SWISS tournament software is a old (2008) piece of software that allows to manage a jugger tournament as a variant of the SWISS system. It returns a XML file with all tournament information, teams, rounds, matches and results. This function reads those information into R for analysis purposes.

Value

readSwissTournament returns a S3 object SwissTournament, which is implemente as a list with the following entries:

summary returns an object of class SwissTournamentSummary, which is a derived class of SwissTournament and contains all fields of the original SwissTorunament plus the following fields:

Author(s)

Christian Beck

Examples

1
2
3
4
5
6
7
8
## Not run: 
# reads the tournament
hanseaticjuggercup2012 <- readSwissTournament("HanseaticJuggerCupR6")

# ad hoc information about rankings
summary(hanseaticjuggercup2012)

## End(Not run)

LueBecko/juggerdata documentation built on May 20, 2019, 4:07 p.m.