Learn R Programming

nbastatR (version 0.1.110202031)

get_teams_seasons_shots: Get teams seasons shot charts

Description

Get teams seasons shot charts

Usage

get_teams_seasons_shots(teams = NULL, team_ids = NULL,
  all_active_teams = F, season_types = "Regular Season", seasons = 2018,
  measures = "FGA", periods = 0, months = 0, date_from = NA,
  date_to = NA, nest_data = F, return_message = T)

Arguments

teams

vector of team names

team_ids

vector of team ids

all_active_teams

if `TRUE` returns all active teams

season_types

vector of season types options

  • Pre Season

  • Regular Season

  • Playoffs

  • All Star

seasons

vector of seasons

measures

vector of measures

periods

vector of periods

months

vector of months

date_from

date from

date_to

date to

nest_data

if `TRUE` nests data

return_message

if `TRUE` returns a message

Value

a data_frame

Examples

Run this code
# NOT RUN {
get_teams_seasons_shots(teams = "Brooklyn Nets",
seasons = 2018)
# }

Run the code above in your browser using DataLab