Learn R Programming

⚠️There's a newer version (0.1.110202031) of this package.Take me there.

nbastatR

Installation

devtools::install_github("abresler/nbastatR")
library("nbastatR") # note requires a bunch of other packages which are listed in the import

Relaunch Coming Soon

NBA Draft Functions

get_year_draft_combine(combine_year = 2009, return_message = T)
get_all_draft_combines(combine_years = 2000:2015) #draft combines

Mock Draft

draft_2016 <- 
  get_nba_draftnet_year_mock_draft(draft_year = 2016)

mocks_09_15 <- 
  get_nba_draftnet_years_mock_draft(draft_years = 2009:2015)

Copy Link

Version

Version

0.1.11003

License

MIT + file LICENSE

Maintainer

Last Published

July 31st, 2021

Functions in nbastatR (0.1.11003)

gather_data

Gather a data frame
get_agents_players

Get agents players
get_nba_stats_api_items

Get NBA Stats API items, players and teams
get_players_profiles

Get NBA players profiles
get_players_roto_wire_news

Get players RotoWire news
get_years_draft_combines

Get NBA Draft Combine data
get_bref_teams_seasons

Basketball Reference Team Season Data
get_coaching_staffs

Get active NBA coaching staffs
get_nba_players_ids

Get NBA Player Ids
nbastatR

nbastatR
get_all_nba_teams_salaries

Get All NBA Teams Salaries
get_beyond_the_numbers_articles

Get Beyond the Numbers articles
get_nba_player_injuries

NBA Injuries
get_nba_players

Get NBA Players
get_nba_transactions

Get NBA transactions since 2012
get_nbadraftnet_mock_drafts

Get NBADraft.net mock drafts
get_games_box_scores

Get games box scores
get_games_fanduel_summary

Get games' fanduel summary
get_hoops_hype_teams_salary_summary

Get HoopsHype NBA teams salaries
get_nba_all_star_game_scores

NBA All Star Game Scores
get_nba_team_current_rankings

Get NBA Team Rankings for most current period
get_nba_team_salaries

Get NBA team salaries
get_seasons_playoff_picture

Get seasons playoff picture
get_seasons_rosters

Get seasons rosters
get_seasons_teams

Get Seasons teams
get_seasons_teams_coaches

Get Seaons Coaching Staffs
get_teams_seasons_info

NBA teams seasons information
get_teams_seasons_shots

Get teams seasons shot charts
get_players_seasons_summary_stats

Get Players Seasons Summary Statistics
get_players_tables_data

NBA players table data
get_seasons_schedule

Get NBA Seasons Schedule
get_seasons_standings

Get seasons standing data
dictionary_nba_names

Dictioanry of NBA Headers and nbastatR usd name
get_nba_team_season_roster

Get NBA Team's Season Roster
fix_names

Fix data frame's names
get_nba_teams

Get NBA team dictionary
get_current_standings

Current NBA season standings
get_seasons_teams_rosters

Get Teams Seasons Rosters
get_shot_pct

get shot pct
get_days_nba_scores

Get NBA Dates' NBA Scores
get_nba_current_season_schedule

Get Current Season Schedule
get_nba_franchise_history

Get NBA franchise history
get_bref_coach_dictionary

Basketball Reference Coach Dictionary
get_bref_player_dictionary

Basketball Reference Player Dictionary
get_bref_players_seasons

Basketball Reference Player Season Tables
get_bref_team_dictionary

BREF Team Dictionary
get_games_pbp_win_probablity

Get Win Probabilities for NBA Game IDs
get_games_play_by_play

Get Play by Play for NBA Game IDs
get_players_agents

Get NBA Players Agents
get_teams_hoopshype_salaries

Get HoopsHype Salaries by Teams
get_teams_roto_wire_news

Get teams roto wire news
get_players_awards

NBA players awatds
get_players_bios

Get Player bios
get_players_career_stats

Get NBA Players Summary Statistics by Mode
get_teams_details

Get NBA Teams details
get_teams_franchise_leaders

Get NBA teams' franchise leaders
parse_records

Parse Record columns
scale_per_minute

Summarise data per minute
spread_data

Spread gathered data frame
summarise_per_minute

Summarise data per minute
clean_to_stem

Clean to Stem
get_drafts

Get NBA Drafts
get_game_logs

NBA game logs NBA game logs for specified parameers
assign_bref_data

Assign nested BREF data to environment
get_nba_teams_ids

Get NBA Team IDs
get_nba_teams_seasons

NBA teams seasons
get_seasons_metrics_league_leaders

Get League Leaders by Season by Type
get_seasons_players

Get NBA Player Dictionary
get_synergy_categories_stats

Get Synergy data for specified season
get_team_coaches

Get Team's Season Coaching Staff
get_teams_seasons_summary_stats

Get Teams Summary Stastics
get_teams_tables_data

NBA Team table data by season
widen_bref_data

Widens basketball reference table data