get_game_stats: get_game_stats

View source: R/game_functions.R

get_game_statsR Documentation

get_game_stats

Description

This function fetches detailed statistics for a game given the game ID. It fetches ten variables that are accessed as lists with home (h) and away (a) players: goals_scored, assists, own_goals, penalties_saved, yellow_cards, red_cards, saves, bonus, and bps.

Usage

get_game_stats(gameid = NULL)

Arguments

gameid

The game ID. Can be found with get_game_list().

Examples

get_game_stats(1)

wiscostret/fplscrapR documentation built on June 12, 2022, 8:03 a.m.