getDistrictEvents | R Documentation |
Get information on FRC events in a given district and year.
getDistrictEvents(district, year = defaultYear(), districtKey = paste0(year, district), simple = TRUE, authKey = defaultAuthKey())
district |
A character string giving the abbreviation for the district. Use |
year |
The year of interest. |
districtKey |
A character string of the form "<year><district>". |
simple |
A logical value. If |
authKey |
Your authentication key for TheBlueAlliance.com. |
A data.frame with one entry for each event with components
city |
A character string giving the event's city. |
country |
A character string giving the event's country. |
district |
A data.frame describing the district. |
end_date |
A 'Date' giving the last day of the event. |
event_code |
A character string giving a short identifier for the event. |
event_type |
An integer giving the event type code: 0=Regional, 1=District, 2=District Championship, 3=Championship Division, 4=Championship Finals, 5=District Championship Division, 99=Offseason, 100=Preseason |
. Etc.
Some regions use the "district" model for events, where teams compete in two events and the top ranked teams in those events compete at the district championship. Others use the "regional" model and teams compete only in a regional championship. The highest ranked teams in the district or regional championships advance to the (world) championship event. See https://www.firstinspires.org/resource-library/frc/district-regional-teams for more information on these models.
The larger championship events may run several "divisional" events concurrently, with the division winners advancing to the championship finals.
getDistricts(year)
will list the district names and codes for a given year.
e <- getDistrictEvents("pnw", year=2022)$event_code
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.