Learn R Programming

ballr (version 0.2.6)

NBAPerGameStatistics: NBA Player Statistics For a Given Season Per Game

Description

This function returns all player statistics on a per game basis from an NBA season on basketball-reference.com. See an example table at: http://www.basketball-reference.com/leagues/NBA_2015_per_game.html

Usage

NBAPerGameStatistics(season = 2018)

Arguments

season

A numeric year

Value

An object of class tbl_df

Examples

Run this code
# NOT RUN {
library(magrittr)

players <- NBAPerGameStatistics(season = 2018)
players

players %>%
  dplyr::filter(mp > 20, pos %in% c("SF")) %>%
  dplyr::select(player, link) %>%
  dplyr::distinct()
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab