get_teams: Gets teams and team URLs for specified league and season

Description Usage Arguments Examples

View source: R/get_teams.R

Description

Returns a data frame of teams and their URLs for user supplied leagues & seasons. Bear in mind that there are some cases in which teams that aren't part of the user-supplied league are returned in the data frame. This is normal and is fixed later when using get_player_stats_team().

Usage

1
get_teams(league, season, progress = TRUE, other = "", ...)

Arguments

league

Leagues from which the user wants to scrape data

season

Seasons for which the user wants to scrape data. Must be of the form 2018, 1965, etc. for the 2017-18 and 1964-65 seasons, respectively.

progress

Sets a Progress Bar. Defaults to TRUE.

...

Allows the user to supply other information to the function. If you don't know what this means, then don't worry about it.

Examples

1
2
3
get_teams("ohl", 2013)

get_teams(c("SHL", "allsvenskan", "ncaa iii"), c(1994, 2017:2018), progress = FALSE)

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