R: Access Men's Basketball Play by Play Data

# Access Men's Basketball Play by Play Data

## Documentation for package ‘hoopR’ version 3.0.0

- DESCRIPTION file
- Package NEWS
- Package README

## Help Pages

C E H K L M N P R T U Y misc

## -- C --

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*

## -- E --

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_game_rosters | *Get ESPN men's college basketball game rosters*
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_player_stats | *Get ESPN men's college basketball player stats data*
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_teams | *Get ESPN men's college basketball team names and IDs*
espn_mbb_team_box | *Get ESPN men's college basketball team box scores*
espn_mbb_team_current_roster | *Get ESPN men's college basketball current team roster*
espn_mbb_team_stats | *Get ESPN men's college basketball team stats data*
espn_mbb_wp | *Men's College Basketball win probability chart data from ESPN*
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_game_rosters | *Get ESPN NBA game rosters*
espn_nba_pbp | *Get ESPN NBA PBP data*
espn_nba_player_box | *Get ESPN NBA player box scores*
espn_nba_player_stats | *Get ESPN NBA player stats data*
espn_nba_scoreboard | *Get ESPN NBA schedule for a specific year*
espn_nba_standings | *Get ESPN NBA's Standings*
espn_nba_teams | *Get ESPN NBA team names and IDs*
espn_nba_team_box | *Get ESPN NBA team box scores*
espn_nba_team_current_roster | *Get ESPN NBA current team roster*
espn_nba_team_stats | *Get ESPN NBA team stats data*
espn_nba_wp | *Get NBA win probability chart data from ESPN*

## -- H --

has_kp_user_and_pw | *KenPom Login and Password credentials*
helper_espn_mbb_pbp | *Parse ESPN MBB PBP, helper function*
helper_espn_mbb_player_box | *Parse ESPN MBB Player Box, helper function*
helper_espn_mbb_team_box | *Parse ESPN MBB Team Box, helper function*
helper_espn_nba_pbp | *Parse ESPN NBA PBP, helper function*
helper_espn_nba_player_box | *Parse ESPN NBA Player Box, helper function*
helper_espn_nba_team_box | *Parse ESPN NBA Team Box, helper function*

## -- K --

kp_arenas | *Get Home Court Arenas*
kp_box | *Get KenPom 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_gameplan | *Get KenPom's team game plan page*
kp_game_attrs | *Get Game Attributes*
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_password | *KenPom Login and Password credentials*
kp_playerstats | *Get Player Stats Leaders by Metric*
kp_player_career | *Get KenPom's player career stats from the player page*
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_referee | *Get referee game log*
kp_teamstats | *Get Team Stats*
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_players | *Get KenPom's player stats from the team page*
kp_team_player_stats | *Get Team Player Stats*
kp_team_schedule | *Get team schedule results*
kp_trends | *Get Division-I statistical trends*
kp_user_email | *KenPom Login and Password credentials*
kp_user_pw | *KenPom Login and Password credentials*
kp_winprob | *Get KenPom Win Probability*

## -- L --

load_mbb_pbp | *Load hoopR men's college basketball play-by-play*
load_mbb_player_box | *Load hoopR men's college basketball player box scores*
load_mbb_schedule | *Load hoopR men's college basketball schedule*
load_mbb_team_box | *Load hoopR men's college basketball team box scores*
load_nba_pbp | *Load hoopR NBA play-by-play*
load_nba_player_box | *Load hoopR NBA player box scores*
load_nba_schedule | *Load hoopR NBA schedules*
load_nba_team_box | *Load hoopR NBA team box scores*
login | *KenPom Login and Password credentials*

## -- M --

most_recent_mbb_season | *Most Recent Men's College Basketball Season*
most_recent_nba_season | *Most Recent NBA Season*

## -- N --

nbagl_live_boxscore | *Get NBA G-League Stats API Live Boxscore*
nbagl_live_pbp | *Get NBA G-League Stats API Live play-by-play*
nbagl_pbp | *Get NBA Data API Play-by-Play for G-League Games*
nbagl_players | *Get G League Player Data Base from NBA API*
nbagl_schedule | *Get G League Schedule from NBA API*
nbagl_standings | *Get Current G League Standings from NBA API*
nba_alltimeleadersgrids | *Get NBA Stats API All-time Leaders Grid*
nba_assistleaders | *Get NBA Stats API Assist Leaders*
nba_assisttracker | *Get NBA Stats API Assist Tracker*
nba_boxscoreadvancedv2 | *Get NBA Stats API Boxscore Advanced V2*
nba_boxscoreadvancedv3 | *Get NBA Stats API Boxscore Advanced V3*
nba_boxscoredefensive | *Get NBA Stats API Boxscore Defensive*
nba_boxscoredefensivev2 | *Get NBA Stats API Boxscore Defensive V2*
nba_boxscorefourfactorsv2 | *Get NBA Stats API Boxscore Four Factors V2*
nba_boxscorefourfactorsv3 | *Get NBA Stats API Boxscore Four Factors V3*
nba_boxscorehustlev2 | *Get NBA Stats API Boxscore Hustle V2*
nba_boxscorematchups | *Get NBA Stats API Boxscore Matchups*
nba_boxscorematchupsv3 | *Get NBA Stats API Boxscore Matchups V3*
nba_boxscoremiscv2 | *Get NBA Stats API Boxscore Misc V2*
nba_boxscoremiscv3 | *Get NBA Stats API Boxscore Misc V3*
nba_boxscoreplayertrackv2 | *Get NBA Stats API Boxscore Player Tracking V2*
nba_boxscoreplayertrackv3 | *Get NBA Stats API Boxscore Player Tracking V3*
nba_boxscorescoringv2 | *Get NBA Stats API Boxscore Scoring V2*
nba_boxscorescoringv3 | *Get NBA Stats API Boxscore Scoring V3*
nba_boxscoresimilarityscore | *Get NBA Stats API Boxscore Similarity Score*
nba_boxscoresummaryv2 | *Get NBA Stats API Boxscore Summary V2*
nba_boxscoresummaryv3 | *Get NBA Stats API Boxscore Summary V3*
nba_boxscoretraditionalv2 | *Get NBA Stats API Boxscore Traditional V2*
nba_boxscoretraditionalv3 | *Get NBA Stats API Boxscore Traditional V3*
nba_boxscoreusagev2 | *Get NBA Stats API Boxscore Usage V2*
nba_boxscoreusagev3 | *Get NBA Stats API Boxscore Usage V3*
nba_commonallplayers | *Get NBA Stats API All Players*
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 Common 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_data_pbp | *Get NBA Data API Play-by-Play*
nba_defensehub | *Get NBA Stats API Defense Hub*
nba_draftboard | *Get NBA Stats API Draft Board*
nba_draftcombinedrillresults | *Get NBA Stats API Draft Combine Drill Results*
nba_draftcombinenonstationaryshooting | *Get NBA Stats API Draft Combine Non-Stationary Shooting*
nba_draftcombineplayeranthro | *Get NBA Stats API Draft Combine Player Anthropological Measurements*
nba_draftcombinespotshooting | *Get NBA Stats API Draft Combine - Spot Shooting*
nba_draftcombinestats | *Get NBA Stats API Draft Combine Stats*
nba_drafthistory | *Get NBA Stats API Draft History*
nba_dunkscoreleaders | *Get NBA Stats API Dunk Score Leaders*
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_franchiseleaderswrank | *Get NBA Stats API Franchise Leaders with Rank*
nba_franchiseplayers | *Get NBA Stats API Franchise Players*
nba_gamerotation | *Get NBA Stats API Game Rotation*
nba_glalumboxscoresimilarityscore | *Get NBA Stats API G-League Alum Boxscore Similarity Score*
nba_gravityleaders | *Get NBA Stats API Gravity Leaders*
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_infographicfanduelplayer | *Get NBA Stats API FanDuel Player Infographic*
nba_iststandings | *Get NBA Stats API In-Season Tournament Standings*
nba_leaderstiles | *Get NBA Stats API Leaders Tiles*
nba_leaguedashlineups | *Get NBA Stats API League Dashboard Lineups*
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_leaguegamefinder | *Get NBA Stats API League Game Streak Finder*
nba_leaguegamelog | *Get NBA Stats API League Game Log*
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_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_leaguestandings | *Get NBA Stats API League Standings*
nba_leaguestandingsv3 | *Get NBA Stats API League Standings V3*
nba_live_boxscore | *Get NBA Stats API Live Boxscore*
nba_live_pbp | *Get NBA Stats API Live play-by-play*
nba_matchupsrollup | *Get NBA Stats API Matchups Rollup*
nba_pbp | *Get NBA Stats API play-by-play*
nba_pbps | *Get NBA Stats API play-by-play (Multiple Games)*
nba_playbyplayv3 | *Get NBA Stats API Play-by-Play V3*
nba_playerawards | *Get NBA Stats API Player Awards*
nba_playercareerbycollege | *Get NBA Stats API Player Career By College*
nba_playercareerbycollegerollup | *Get NBA Stats API Player Career By College Rollup*
nba_playercareerstats | *Get NBA Stats API Player Career Stats*
nba_playercompare | *Get NBA Stats API Player Compare*
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_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_playerestimatedmetrics | *Get NBA Stats API Player Estimated Metrics*
nba_playerfantasyprofile | *Get NBA Stats API Player Fantasy Profile*
nba_playerfantasyprofilebargraph | *Get NBA Stats API Player Fantasy Profile Bar Graph*
nba_playergamelog | *Get NBA Stats API Player Game Log*
nba_playergamelogs | *Get NBA Stats API Player Game Logs*
nba_playergamestreakfinder | *Get NBA Stats API Player Game Streak Finder*
nba_playerheadshot | *Get NBA Stats API Player Head-shot*
nba_playerindex | *Get NBA Stats API Player Index*
nba_playernextngames | *Get NBA Stats API Player Next N Games*
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_schedule | *Get NBA Stats API Season Schedule*
nba_scheduleleaguev2int | *Get NBA Stats API International Schedule*
nba_scoreboard | *Get NBA Stats API Scoreboard*
nba_scoreboardv2 | *Get NBA Stats API Scoreboard V2*
nba_scoreboardv3 | *Get NBA Stats API Scoreboard V3*
nba_shotchartdetail | *Get NBA Stats API Shot Chart Detail*
nba_shotchartleaguewide | *Get NBA Stats API Shot Chart League-Wide*
nba_shotchartlineupdetail | *Get NBA Stats API Shot Chart for Lineups*
nba_synergyplaytypes | *Get NBA Stats API Synergy Play Type Stats*
nba_teamandplayersvsplayers | *Get NBA Stats API Team and Players vs Players*
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_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_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_teamgamestreakfinder | *Get NBA Stats API Team Game Streak Finder*
nba_teamhistoricalleaders | *Get NBA Stats API Team Historical Leaders*
nba_teaminfocommon | *Get NBA Stats API Team Common Info*
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*
nba_teams | *Get NBA Stats API Teams*
nba_teamvsplayer | *Get NBA Stats API Team vs Player*
nba_teamyearbyyearstats | *Get NBA Stats API Team Year by Year Stats*
nba_todays_scoreboard | *Get NBA Stats API Today's Scoreboard*
nba_videodetails | *Get NBA Stats API Video Details*
nba_videodetailsasset | *Get NBA Stats API Video Details*
nba_videoevents | *Get NBA Stats API Video Events*
nba_videoeventsasset | *Get NBA Stats API Video Events Asset*
nba_videostatus | *Get NBA Stats API Video Status*
nba_winprobabilitypbp | *Get NBA Stats API Win Probability PBP*
ncaa_mbb_NET_rankings | *Get men's college basketball NET rankings for the current date from the NCAA website*
ncaa_mbb_teams | *Scrape NCAA Men's Baskebtall Teams (Division I, II, and III)*

## -- P --

progressively | *Progressively*

## -- R --

rds_from_url | *Load .rds file from a remote connection*
rejoin_schedules | *rejoin schedules (when used from league game finder)*

## -- T --

teams_links | *Men's College Basketball KenPom Teams Dictionary* Team link KenPom reference lookup for the package

## -- U --

update_mbb_db | *Update or create a hoopR MBB play-by-play database*
update_nba_db | *Update or create a hoopR NBA play-by-play database*

## -- Y --

year_to_season | *year to season (XXXX -> XXXX-YY)*

## -- misc --

.build_player_roster | *Build player roster lookup from boxscore data*
.players_on_court | *Add players on court in NBA Stats API play-by-play*
.players_on_court_v3 | *Add players on court in NBA Stats API V3 play-by-play*
.v3_to_v2_format | *Convert V3 PBP columns to V2-compatible format*