Description Usage Arguments Value See Also Examples
View source: R/seasons_rosters.R
Rosters for each team of specified seasons
1 | 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()
1 2 3 4 5 6 7 8 9 10 | 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.