Learn R Programming

nbastatR (version 0.1.11011)

get_players_career_stats: NBA players career stats

Description

Get NBA Players Summary Statistics by Mode

Usage

get_players_career_stats(player_ids = NULL, players = NULL,
  modes = c("PerGame", "Totals"), assign_to_environment = TRUE,
  add_mode_names = TRUE, return_message = TRUE)

Arguments

player_ids

vector of NBA Player IDs

players

NULL or vector of NBA players

modes

vector of items that can include

  • Totals

  • PerGame

  • Per36

assign_to_environment

if TRUE assign to each table environment with a name starting with data

add_mode_names

if TRUE adds the type of mode to the table data

return_message

if TRUE returns a message

Value

a data_frame

Examples

Run this code
# NOT RUN {
get_players_career_stats(players = c("Joe Harris", "Myles Turner"), modes = c("Totals", "PerGame"))
# }

Run the code above in your browser using DataLab