seasons_rosters: NBA teams seasons rosters

View source: R/seasons_rosters.R

seasons_rostersR Documentation

NBA teams seasons rosters

Description

Rosters for each team of specified seasons

Usage

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

Other teams: drafts(), franchise_leaders(), teams_players_stats(), teams_rankings()

Other rosters: team_season_roster(), teams_rosters()

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

abresler/nbastatR documentation built on Nov. 9, 2023, 2:33 p.m.