fb_player_scouting_report {worldfootballR} | R Documentation |
Get fbref Full Player Scouting Report
Description
Returns the scouting report for a selected player
Usage
fb_player_scouting_report(player_url, pos_versus, time_pause = 3)
Arguments
player_url |
the URL of the player (can come from fb_player_urls()) |
pos_versus |
either "primary" or "secondary" as fbref offer comparisons against multiple positions |
time_pause |
the wait time (in seconds) between page loads |
Value
returns a dataframe of a player's full scouting information for all seasons available on FBref
Examples
## Not run:
try({
fb_player_scouting_report(player_url = "https://fbref.com/en/players/d70ce98e/Lionel-Messi",
pos_versus = "primary")
# to filter for the last 365 days:
fb_player_scouting_report(player_url = "https://fbref.com/en/players/d70ce98e/Lionel-Messi",
pos_versus = "primary") %>% dplyr::filter(scouting_period == "Last 365 Days")
# to get secondary positions
fb_player_scouting_report(player_url = "https://fbref.com/en/players/d70ce98e/Lionel-Messi",
pos_versus = "secondary")
# for the 2020-2021 La Liga season
fb_player_scouting_report(player_url = "https://fbref.com/en/players/d70ce98e/Lionel-Messi",
pos_versus = "secondary") %>% dplyr::filter(scouting_period == "2020-2021 La Liga")
})
## End(Not run)
[Package worldfootballR version 0.6.2 Index]