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()