hoopR Data

NBA Data Functions

Functions exported by hoopR to access the hoopR-data repository’s NBA Data

load_nba_pbp()

Load hoopR NBA play-by-play

load_nba_team_box()

Load hoopR NBA team box scores

load_nba_player_box()

Load hoopR NBA player box scores

load_nba_schedule()

Load hoopR NBA schedules

update_nba_db()

Update or create a hoopR play-by-play database

Men's College Basketball Data Functions

Functions exported by hoopR to access the hoopR-data repository’s Men’s College Basketball Data

load_mbb_pbp()

Load hoopR men's college basketball play-by-play

load_mbb_team_box()

Load hoopR men's college basketball team box scores

load_mbb_player_box()

Load hoopR men's college basketball player box scores

load_mbb_schedule()

Load hoopR men's college basketball schedule

update_mbb_db()

Update or create a hoopR play-by-play database

ESPN Data

Men's College Basketball Data Functions

Functions exported by hoopR to access ESPN Men’s College Basketball Data

espn_mbb_betting()

Get ESPN MBB's Betting information

espn_mbb_conferences()

Get ESPN conference names and ids

espn_mbb_game_all()

Get ESPN men's college basketball data (Pbp, Team and Player Box)

espn_mbb_pbp()

Get ESPN men's college basketball PBP data

espn_mbb_player_box()

Get ESPN men's college basketball player box scores

espn_mbb_rankings()

Get men's college basketball AP and Coaches Poll rankings from ESPN

espn_mbb_scoreboard()

Get ESPN men's college basketball schedule for a specific year

espn_mbb_standings()

Get ESPN men's college basketball standings

espn_mbb_team_box()

Get ESPN men's college basketball team box scores

espn_mbb_teams()

Get ESPN men's college basketball team names and ids

NBA Data Functions

Functions exported by hoopR to access ESPN’s NBA Data

espn_nba_betting()

Get ESPN NBA's Betting information

espn_nba_game_all()

Get ESPN NBA game data (Pbp, Team and Player Box)

espn_nba_pbp()

Get ESPN NBA PBP data

espn_nba_player_box()

Get ESPN NBA player box scores

espn_nba_scoreboard()

Get ESPN men's NBA schedule for a specific year

espn_nba_standings()

Get ESPN NBA's Standings

espn_nba_team_box()

Get ESPN NBA team box scores

espn_nba_teams()

Get ESPN NBA team names and ids

NBA Data

NBA Stats API

Functions exported by hoopR to access the NBA Stats API

nba_commonallplayers()

Get NBA Stats API All Players

nba_alltimeleadersgrids()

Get NBA Stats API All-time Leaders Grid

nba_assisttracker()

Get NBA Stats API Assist Tracker

nba_assistleaders()

Get NBA Stats API Assist Leaders

nba_boxscoreadvancedv2()

Get NBA Stats API Boxscore Advanced V2

nba_boxscoredefensive()

Get NBA Stats API Boxscore Defensive

nba_boxscorefourfactorsv2()

Get NBA Stats API Boxscore Four Factors V2

nba_boxscorematchups()

Get NBA Stats API Boxscore Matchups

nba_boxscoremiscv2()

Get NBA Stats API Boxscore Misc V2

nba_boxscoreplayertrackv2()

Get NBA Stats API Boxscore Player Tracking V2

nba_boxscorescoringv2()

Get NBA Stats API Boxscore Scoring V2

nba_boxscoresimilarityscore()

Get NBA Stats API Boxscore Similarity Score

nba_boxscoresummaryv2()

Get NBA Stats API Boxscore Summary V2

nba_boxscoretraditionalv2()

Get NBA Stats API Boxscore Traditional V2

nba_boxscoreusagev2()

Get NBA Stats API Boxscore Usage V2

nba_commonplayerinfo()

Get NBA Stats API Player Info

nba_commonplayoffseries()

Get NBA Stats API Playoff Series

nba_commonteamroster()

Get NBA Stats API Team Roster

nba_commonteamyears()

Get NBA Stats API Team Years

nba_cumestatsplayer()

Get NBA Stats API Cumulative Player Stats

nba_cumestatsplayergames()

Get NBA Stats API Cumulative Player Game Stats

nba_cumestatsteam()

Get NBA Stats API Cumulative Team Stats

nba_cumestatsteamgames()

Get NBA Stats API Cumulative Team Game Stats

nba_draftboard()

Get NBA Stats API Draft Board

nba_draftcombineplayeranthro()

Get NBA Stats API Draft Combine Player Anthropological Measurements

nba_draftcombinedrillresults()

Get NBA Stats API Draft Combine Drill Results

nba_draftcombinenonstationaryshooting()

Get NBA Stats API Draft Combine Non-Stationary Shooting

nba_draftcombinespotshooting()

Get NBA Stats API Draft Combine - Spot Shooting

nba_draftcombinestats()

Get NBA Stats API Draft Combine Stats

nba_defensehub()

Get NBA Stats API Defense Hub

nba_fantasywidget()

Get NBA Stats API Fantasy Widget

nba_franchisehistory()

Get NBA Stats API Franchise History

nba_franchiseleaders()

Get NBA Stats API Franchise Leaders

nba_franchiseplayers()

Get NBA Stats API Franchise Players

nba_glalumboxscoresimilarityscore()

Get NBA Stats API G-League Alum Boxscore Similarity Score

nba_homepageleaders()

Get NBA Stats API Homepage Leaders

nba_homepagev2()

Get NBA Stats API HomepageV2 Leaders

nba_hustlestatsboxscore()

Get NBA Stats API Hustle Stats Boxscore

nba_leaguehustlestatsplayer()

Get NBA Stats API League Hustle Stats Player

nba_leaguehustlestatsplayerleaders()

Get NBA Stats API League Hustle Stats Player Leaders

nba_leaguehustlestatsteam()

Get NBA Stats API League Hustle Stats Team

nba_leaguehustlestatsteamleaders()

Get NBA Stats API League Hustle Stats Team Leaders

nba_leaguegamelog()

Get NBA Stats API League Game Log

nba_leaguestandings()

Get NBA Stats API League Standings

nba_leaguestandingsv3()

Get NBA Stats API League Standings V3

nba_leaguedashoppptshot()

Get NBA Stats API League Dashboard Player Tracking - Opponent Shots

nba_leaguedashplayerbiostats()

Get NBA Stats API League Dashboard Player Biographical Stats

nba_leaguedashplayerclutch()

Get NBA Stats API League Dashboard by Player Clutch Splits

nba_leaguedashplayerptshot()

Get NBA Stats API League Dashboard Player Tracking - Player Shots

nba_leaguedashplayershotlocations()

Get NBA Stats API League Dashboard Player Shot Locations

nba_leaguedashplayerstats()

Get NBA Stats API League Dashboard Player Stats

nba_leaguedashptdefend()

Get NBA Stats API League Dashboard Player Tracking - Defense

nba_leaguedashptstats()

Get NBA Stats API League Dashboard Player Tracking - Stats

nba_leaguedashptteamdefend()

Get NBA Stats API League Dashboard Player Tracking - Team Defense

nba_leaguedashteamclutch()

Get NBA Stats API League Dashboard by Team Clutch Splits

nba_leaguedashteamptshot()

Get NBA Stats API League Dashboard Player Tracking - Team Shots

nba_leaguedashteamshotlocations()

Get NBA Stats API League Dashboard Team Shot Locations

nba_leaguedashteamstats()

Get NBA Stats API League Dashboard Team Stats

nba_leaderstiles()

Get NBA Stats API Leaders Tiles

nba_leaguedashlineups()

Get NBA Stats API League Dashboard Lineups

nba_leagueleaders()

Get NBA Stats API League Leaders

nba_leaguelineupviz()

Get NBA Stats API League Lineup Visual Data

nba_leagueplayerondetails()

Get NBA Stats API League Player On/Off Details

nba_leagueseasonmatchups()

Get NBA Stats API League Season Matchups

nba_leaguegamefinder()

Get NBA Stats API League Game Streak Finder

nba_matchupsrollup()

Get NBA Stats API Matchups Rollup

nba_videodetails()

Get NBA Stats API Video Details

nba_videoevents() nba_videostatus()

Get NBA Stats API Video Events

nba_playerestimatedmetrics()

Get NBA Stats API Player Estimated Metrics

nba_playergamelog()

Get NBA Stats API Player Game Log

nba_playergamelogs()

Get NBA Stats API Player Game Logs

nba_playernextngames()

Get NBA Stats API Player Next N Games

nba_pbp()

Get NBA Stats API play-by-play

nba_playerdashboardbyclutch()

Get NBA Stats API Player Dashboard by Clutch Splits

nba_playerdashboardbygamesplits()

Get NBA Stats API Player Dashboard by Game Splits

nba_playerdashboardbygeneralsplits()

Get NBA Stats API Player Dashboard by General Splits

nba_playerdashboardbylastngames()

Get NBA Stats API Player Dashboard by Last N Games

nba_playerdashboardbyopponent()

Get NBA Stats API Player Dashboard by Opponent

nba_playerdashboardbyshootingsplits()

Get NBA Stats API Player Dashboard by Shooting Splits

nba_playerdashboardbyteamperformance()

Get NBA Stats API Player Dashboard by Team Performance

nba_playerdashboardbyyearoveryear()

Get NBA Stats API Player Dashboard Year over Year

nba_playercareerbycollege()

Get NBA Stats API Player Career By College

nba_playercareerbycollegerollup()

Get NBA Stats API Player Career By College Rollup

nba_playerfantasyprofile()

Get NBA Stats API Player Fantasy Profile

nba_playerfantasyprofilebargraph()

Get NBA Stats API Player Fantasy Profile Bar Graph

nba_playergamestreakfinder()

Get NBA Stats API Player Game Streak Finder

nba_playerawards()

Get NBA Stats API Player Awards

nba_playercareerstats()

Get NBA Stats API Player Career Stats

nba_playercompare()

Get NBA Stats API Player Compare

nba_playerprofilev2()

Get NBA Stats API Player Profile V2

nba_playervsplayer()

Get NBA Stats API Player vs Player

nba_playoffpicture()

Get NBA Stats API Playoff Picture

nba_playerdashptpass()

Get NBA Stats API Player Dashboard Player Tracking - Passing

nba_playerdashptreb()

Get NBA Stats API Player Dashboard Player Tracking - Rebounding

nba_playerdashptshotdefend()

Get NBA Stats API Player Dashboard Player Tracking - Defense

nba_playerdashptshots()

Get NBA Stats API Player Dashboard Player Tracking - Shots

nba_shotchartdetail()

Get NBA Stats API Shot Chart Detail

nba_shotchartleaguewide()

Get NBA Stats API Shot Chart League-Wide

nba_schedule()

Get NBA Stats API Schedule

nba_scoreboard()

Get NBA Stats API Scoreboard

nba_scoreboardv2()

Get NBA Stats API Scoreboard V2

nba_teamdetails()

Get NBA Stats API Team Details

nba_teamestimatedmetrics()

Get NBA Stats API Team Estimated Metrics

nba_teamgamelog()

Get NBA Stats API Team Game Log

nba_teamgamelogs()

Get NBA Stats API Team Game Logs

nba_teamdashptpass()

Get NBA Stats API Team Dashboard Player Tracking - Passing

nba_teamdashptreb()

Get NBA Stats API Team Dashboard Player Tracking - Rebounding

nba_teamdashptshots()

Get NBA Stats API Team Dashboard Player Tracking - Shots

nba_teamvsplayer()

Get NBA Stats API Team vs Player

nba_teamyearbyyearstats()

Get NBA Stats API Team Year by Year Stats

nba_teamdashboardbyclutch()

Get NBA Stats API Team Dashboard by Clutch Splits

nba_teamdashboardbygamesplits()

Get NBA Stats API Team Dashboard by Game Splits

nba_teamdashboardbygeneralsplits()

Get NBA Stats API Team Dashboard by General Splits

nba_teamdashboardbylastngames()

Get NBA Stats API Team Dashboard by Last N Games

nba_teamdashboardbyopponent()

Get NBA Stats API Team Dashboard by Opponent

nba_teamdashboardbyshootingsplits()

Get NBA Stats API Team Dashboard by Shooting Splits

nba_teamdashboardbyteamperformance()

Get NBA Stats API Team Dashboard by Team Performance

nba_teamdashboardbyyearoveryear()

Get NBA Stats API Team Dashboard Year over Year

nba_teamdashlineups()

Get NBA Stats API Team Dashboard - Lineups

nba_teaminfocommon()

Get NBA Stats API Team Common Info

nba_teamgamestreakfinder()

Get NBA Stats API Team Game Streak Finder

nba_teamhistoricalleaders()

Get NBA Stats API Team Historical Leaders

nba_teamplayerdashboard()

Get NBA Stats API Team Player Dashboard

nba_teamplayeronoffdetails()

Get NBA Stats API Team Player On/Off Details

nba_teamplayeronoffsummary()

Get NBA Stats API Team Player On/Off Summary

update_nba_db()

Update or create a hoopR play-by-play database

nba_winprobabilitypbp()

Get NBA Stats API Win Probability PBP

NCAA Data

NCAA Data Functions

Functions exported by hoopR to access NCAA Men’s College Basketball Data

ncaa_mbb_NET_rankings() ncaa_mbb_NET_rankings()

Get men's college basketball NET rankings for the current date from the NCAA website

KenPom Data

KenPom Data Functions

Functions exported by hoopR

kp_arenas()

Get Home Court Arenas

kp_box()

Get Game Box Score

kp_coach_history()

Get KenPom's coaching resume data

kp_conf()

Get KenPom's conference-wide stats

kp_confhistory()

Get KenPom's historical conference ratings

kp_confstats()

Get KenPom's conference comparison stats

kp_efficiency()

Get KenPom Efficiency and Tempo Summary

kp_fanmatch()

Get FanMatch by date

kp_foul_trouble()

Get 2-Foul Participation Stats

kp_fourfactors()

Get Four Factors Data

kp_game_attrs()

Get Game Attributes

kp_gameplan()

Get KenPom's team game plan page

kp_hca()

Get Home Court Advantage Estimates

kp_height()

Get Heights, Experience, Bench and Continuity Data

kp_kpoy()

Get KPoY Leaders Tables

kp_minutes_matrix()

Get Minutes Matrix from Expanded Player Page

kp_officials()

Get officials rankings

kp_opptracker()

Get KenPom's team opponent tracker page

kp_player_career()

Get KenPom's player career stats from the player page

kp_playerstats()

Get Player Stats Leaders by Metric

kp_pointdist()

Get Team Points Distribution

kp_pomeroy_archive_ratings()

Get KenPom's ratings archive pages

kp_pomeroy_ratings()

Get KenPom Ratings

kp_program_ratings()

Get KenPom's program ratings

kp_team_depth_chart()

Get Depth Chart Last 5 Games from Team Page

kp_team_history()

Get KenPom's team efficiency history

kp_team_lineups()

Get Lineups Last 5 Games from Team Page

kp_team_player_stats()

Get Team Player Stats

kp_team_players()

Get KenPom's player stats from the team page

kp_team_schedule()

Get team schedule results

kp_teamstats()

Get Team Stats

kp_trends()

Get Division-I statistical trends

login() kp_user_email() kp_password() has_kp_user_and_pw()

KenPom Login and Password credentials

kp_winprob()

Get Win Probability

Helper Functions and Data

Included data

Data included within the package

teams_links

Teams Dictionary Team link reference lookup for the package

hoopR Helper Functions

Internal functions used by hoopR

login() kp_user_email() kp_password() has_kp_user_and_pw()

KenPom Login and Password credentials

check_status()

Check Status function

clean_team_names_NCAA_merge()

Clean KenPom Data Frame Team Names to match NCAA Team Names for easier merging

csv_from_url()

Load .csv / .csv.gz file from a remote connection

rds_from_url()

Load .rds file from a remote connection

most_recent_mbb_season()

Most Recent Men's College Basketball Season

most_recent_nba_season()

Most Recent NBA Season

progressively()

Progressively