View source: R/seasons_rosters.R
seasons_rosters | R Documentation |
Rosters for each team of specified seasons
seasons_rosters(seasons = NULL, return_message = TRUE, nest_data = F)
seasons |
vector of seasons |
return_message |
if |
nest_data |
if |
a 'date_frame'
Other teams:
drafts()
,
franchise_leaders()
,
teams_players_stats()
,
teams_rankings()
Other rosters:
team_season_roster()
,
teams_rosters()
library(nbastatR)
library(dplyr)
df_rosters <- seasons_rosters(2015:2018)
### Mean Age by Season and Team
df_rosters %>%
group_by(slugSeason, slugTeam) %>%
summarise(ageMean = mean(agePlayer)) %>%
arrange(ageMean) %>%
ungroup()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.