fb_player_season_stats: Get fbref Player Season Statistics

View source: R/get_season_player_stats.R

fb_player_season_statsR Documentation

Get fbref Player Season Statistics

Description

Returns the historical season stats for a selected player(s) and stat type

Usage

fb_player_season_stats(player_url, stat_type, time_pause = 3)

Arguments

player_url

the URL(s) of the player(s) (can come from fb_player_urls())

stat_type

the type of statistic required

time_pause

the wait time (in seconds) between page loads

The statistic type options (stat_type) include:

"standard", "shooting", "passing", "passing_types", "gca", "defense", "possession" "playing_time", "misc", "keeper", "keeper_adv"

Value

returns a dataframe of a player's historical season stats

Examples

## Not run: 
try({
fb_player_season_stats("https://fbref.com/en/players/3bb7b8b4/Ederson",
                       stat_type = 'standard')

multiple_playing_time <- fb_player_season_stats(
 player_url = c("https://fbref.com/en/players/d70ce98e/Lionel-Messi",
           "https://fbref.com/en/players/dea698d9/Cristiano-Ronaldo"),
 stat_type = "playing_time")
})

## End(Not run)

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