Get ESPN NBA schedule for a specific year
Value
Returns a tibble with scoreboard data
col_name | types |
matchup | character |
matchup_short | character |
season | integer |
season_type | integer |
season_slug | character |
game_id | integer |
game_uid | character |
game_date | Date |
attendance | integer |
notes | logical |
status_name | character |
broadcasts | logical |
start_date | character |
geo_broadcasts | logical |
game_date_time | POSIXct |
home_team_name | character |
home_team_logo | character |
home_team_abb | character |
home_team_id | integer |
home_team_location | character |
home_team_full_name | character |
home_team_color | character |
home_score | integer |
home_win | integer |
home_record | character |
away_team_name | character |
away_team_logo | character |
away_team_abb | character |
away_team_id | integer |
away_team_location | character |
away_team_full_name | character |
away_team_color | character |
away_score | integer |
away_win | integer |
away_record | character |
See also
Other ESPN NBA Functions:
espn_nba_betting()
,
espn_nba_game_all()
,
espn_nba_game_rosters()
,
espn_nba_pbp()
,
espn_nba_player_box()
,
espn_nba_player_stats()
,
espn_nba_standings()
,
espn_nba_team_box()
,
espn_nba_team_stats()
,
espn_nba_teams()
,
espn_nba_wp()
Examples
# Get schedule from date 2022-11-17 (returns 1000 results, max allowable.)
# \donttest{
try(espn_nba_scoreboard(season = 20230423))
#> ── ESPN NBA Scoreboard Information from ESPN.com ──────────────── hoopR 2.1.0 ──
#> ℹ Data updated: 2023-11-28 22:10:06 UTC
#> # A tibble: 4 × 35
#> matchup matchup_short season season_type season_slug game_id game_uid
#> <chr> <chr> <int> <int> <chr> <int> <chr>
#> 1 Cleveland Caval… CLE @ NY 2023 3 post-season 4.02e8 s:40~l:…
#> 2 Sacramento King… SAC @ GS 2023 3 post-season 4.02e8 s:40~l:…
#> 3 Boston Celtics … BOS @ ATL 2023 3 post-season 4.02e8 s:40~l:…
#> 4 Denver Nuggets … DEN @ MIN 2023 3 post-season 4.02e8 s:40~l:…
#> # ℹ 28 more variables: game_date <date>, attendance <int>,
#> # play_by_play_available <lgl>, status_name <chr>, broadcast_market <chr>,
#> # broadcast_name <chr>, start_date <chr>, game_date_time <dttm>,
#> # home_team_name <chr>, home_team_logo <chr>, home_team_abb <chr>,
#> # home_team_id <int>, home_team_location <chr>, home_team_full_name <chr>,
#> # home_team_color <chr>, home_score <int>, home_win <int>, home_record <chr>,
#> # away_team_name <chr>, away_team_logo <chr>, away_team_abb <chr>, …
# }