View source: R/get_season_player_stats.R
fb_player_season_stats | R Documentation |
Returns the historical season stats for a selected player(s) and stat type
fb_player_season_stats(player_url, stat_type, time_pause = 3)
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" |
returns a dataframe of a player's historical season stats
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.