Description Usage Arguments Value See Also Examples
View source: R/firstapiR_util.R
Downloads all data for a specific FRC competition and returns the data in a list of data frames, or character vectors containing XML or JSON text, depending on the format setting in the session variable. The list's named elements are listed below in the Value section.
1 | GetAll(session, event)
|
session |
A Session object created with |
event |
A character vector containing a FIRST API event code
(see |
A list containing the following firstapiR elements which are data frames, XML character vectors, or JSON character vectors:
season: Season class. See GetSeason.
event: Events class. See GetEvents.
teams: Teams class, listing all teams in the competition. See GetTeams.
matches_qual: MatchResults class, for qualification matches. See GetMatchResults.
matches_playoff: MatchResults class, for playoffs. See GetMatchResults.
schedule_qual: Schedule class, for qualification matches. See GetSchedule.
schedule_playoff: Schedule class, for playoffs. See GetSchedule.
scores_qual: Scores class, for qualification matches. See GetScores.
scores_playoff: Scores class, for playoffs. See GetScores.
rankings: Rankings class. See GetRankings.
alliances: Alliances class. See GetAlliances.
awards: Awards class. See GetAwards.
GetAll
will omit qualification-level elements and rankings if the
event
argument is set to "CMP", which corresponds to the finals on
Einstein.
GetEvents
1 2 3 4 5 6 | ## Not run:
sn <- GetSession("myUserName", "key", season = 2016)
archimedes <- GetAll(sn, "ARCHIMEDES")
SaveData(archimedes)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.