fb_player_goal_logs: Get player goal logs

View source: R/fb_player_goal_logs.R

fb_player_goal_logsR Documentation

Get player goal logs

Description

Returns the player's career goal and assist logs

Usage

fb_player_goal_logs(player_urls, time_pause = 3, goals_or_assists = "goals")

Arguments

player_urls

the URL(s) of the player(s)

time_pause

the wait time (in seconds) between page loads

goals_or_assists

select whether to return data of "goals" (the default), "assists", or "both"

Value

returns a dataframe of the player's goals and assists

Examples

## Not run: 
try({
# for single players:
jwp_url <- "https://fbref.com/en/players/3515d404/"
fb_player_goal_logs(player_urls = jwp_url, goals_or_assists = "goals")
})

## End(Not run)

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