Rosters for each team of specified seasons

seasons_rosters(seasons = NULL, return_message = TRUE, nest_data = F)

Arguments

seasons

vector of seasons

return_message

if TRUE returns a message

nest_data

if TRUE nests data

Value

a `date_frame`

See also

Examples

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