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.

get_game_stats(gameid = NULL)

Arguments

gameid

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

Examples

get_game_stats(1)
#> identifier #> 1 goals_scored #> 2 assists #> 3 own_goals #> 4 penalties_saved #> 5 penalties_missed #> 6 yellow_cards #> 7 red_cards #> 8 saves #> 9 bonus #> 10 bps #> a #> 1 NULL #> 2 NULL #> 3 NULL #> 4 NULL #> 5 NULL #> 6 NULL #> 7 NULL #> 8 1, 1 #> 9 NULL #> 10 17, 14, 14, 13, 13, 13, 12, 11, 9, 7, 4, 4, -2, 16, 8, 10, 7, 21, 478, 67, 1, 17, 26, 22, 531, 530 #> h #> 1 1, 1, 77, 81 #> 2 1, 91 #> 3 NULL #> 4 NULL #> 5 NULL #> 6 NULL #> 7 NULL #> 8 4, 80 #> 9 3, 2, 1, 81, 91, 80 #> 10 33, 32, 30, 25, 23, 22, 22, 9, 6, 4, 4, 4, 3, 1, 81, 91, 80, 77, 483, 76, 83, 479, 84, 78, 96, 97, 90, 88