get_player_stats_team: Gets players' stats and URLs for specified team

Description Usage Arguments Examples

View source: R/get_player_stats_team.R

Description

Returns a data frame of players' stats and player URLs for user supplied teams & seasons

Usage

1
get_player_stats_team(..., progress = TRUE, other = "")

Arguments

...

Function requires a team_url, team, league, and season. Additional data may be supplied. All of this information comes directly from get_teams(), if desired.

progress

Sets a Progress Bar. Defaults to TRUE.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# The function works in conjunction with get_teams()
teams <- get_teams("ohl", 2018)
get_player_stats_team(teams)

# All functions are easily pipeable too
get_teams(c("shl", "allsvenskan"), 2009:2011) %>%
  get_player_stats_team(progress = TRUE)
  
# It's also easy to get player stats for only 1 team   
get_teams("ncaa iii", 2018) %>%
  filter(team == "Hamilton College") %>%
  get_player_stats_team()
  

eoppe1022/elite documentation built on Nov. 15, 2019, 6:47 a.m.