Skip to contents

Reads event object from TBA API

Usage

event(key, simple = FALSE)

Arguments

key

TBA legal event key

simple

(bool) simplify event objects?

Value

tidy tibble of one row with an event object

Author

Gabriel Krotkov

Examples

event("2022txirv")
#>                                                     address   city country
#> event 500 West Las Colinas Boulevard, Irving, TX 75039, USA Irving     USA
#>                                 district division_keys   end_date event_code
#> event fit, FIRST In Texas, 2022fit, 2022          NULL 2022-03-26      txirv
#>       event_type event_type_string first_event_code first_event_id
#> event          1          District            txirv           NULL
#>                    gmaps_place_id
#> event ChIJgS3ci5iCToYRuUZNGfcd4cc
#>                                                                                                                         gmaps_url
#> event https://maps.google.com/?q=500+West+Las+Colinas+Boulevard,+Irving,+TX+75039,+USA&ftid=0x864e82988bdc2d81:0xc7e11df7194d46b9
#>             key      lat       lng                  location_name
#> event 2022txirv 32.87808 -96.94322 500 West Las Colinas Boulevard
#>                            name parent_event_key playoff_type
#> event FIT District Irving Event             NULL            0
#>       playoff_type_string postal_code short_name start_date state_prov
#> event                NULL       75039     Irving 2022-03-24         TX
#>              timezone                   webcasts                   website week
#> event America/Chicago firstintexasevents, twitch https://firstintexas.org/    3
#>       year
#> event 2022
event("2016pahat", simple = TRUE)
#>                                      address    city country
#> event 899 Horsham Rd, Horsham, PA 19044, USA Horsham     USA
#>                                     district division_keys   end_date
#> event mar, FIRST Mid-Atlantic, 2016mar, 2016          NULL 2016-03-06
#>       event_code event_type event_type_string first_event_code first_event_id
#> event      pahat          1          District            pahat          17425
#>                    gmaps_place_id
#> event ChIJOYzf8XilxokRpKeZ6pBxor8
#>                                               gmaps_url       key      lat
#> event https://maps.google.com/?cid=13808724274696529828 2016pahat 40.19774
#>             lng                      location_name
#> event -75.16352 Hatboro-Horsham Senior High School
#>                                       name parent_event_key playoff_type
#> event MAR District - Hatboro-Horsham Event             NULL         NULL
#>       playoff_type_string postal_code      short_name start_date state_prov
#> event                NULL       19044 Hatboro-Horsham 2016-03-04         PA
#>               timezone                                   webcasts
#> event America/New_York Osoi9RrsFVM, youtube, RFVj5E28Rao, youtube
#>                                   website week year
#> event http://www.midatlanticrobotics.com/    1 2016