Learn R Programming

ballr (version 0.2.6)

NBAPerGameStatisticsPer36Min: NBA Player Statistics For a Given Season per 36 Minutes

Description

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

Usage

NBAPerGameStatisticsPer36Min(season = 2018)

Arguments

season

A numeric year

Value

An object of class tbl_df

Examples

Run this code
# NOT RUN {
library(magrittr)

players <- NBAPerGameStatisticsPer36Min(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