fb_season_team_stats: Get FBref season team stats

View source: R/get_season_team_stats.R

fb_season_team_statsR Documentation

Get FBref season team stats

Description

Returns different team season statistics results for a given league season and stat type Replaces the deprecated function get_season_team_stats

Usage

fb_season_team_stats(
  country,
  gender,
  season_end_year,
  tier,
  stat_type,
  time_pause = 3
)

Arguments

country

the three character country code for all countries

gender

gender of competition, either "M", "F" or both

season_end_year

the year the season(s) concludes

tier

the tier of the league, ie '1st' for the EPL or '2nd' for the Championship and so on

stat_type

the type of team statistics the user requires

time_pause

the wait time (in seconds) between page loads

The statistic type options (stat_type) include:

"league_table", "league_table_home_away", "standard", "keeper", "keeper_adv", "shooting", "passing", "passing_types", "goal_shot_creation", "defense" , "possession", "playing_time", "misc"

Value

returns a dataframe of a selected team statistic type for a selected league season

Examples

## Not run: 
try({
fb_season_team_stats("ITA", "M", 2021, "1st", "defense")
})

## End(Not run)

worldfootballR documentation built on Nov. 26, 2022, 9:05 a.m.