fotmob_get_match_team_stats: Get fotmob match top team stats by match id

View source: R/fotmob_matches.R

fotmob_get_match_team_statsR Documentation

Get fotmob match top team stats by match id

Description

Returns match top team stats from fotmob.com

Usage

fotmob_get_match_team_stats(match_ids)

Arguments

match_ids

a vector of strings or numbers representing matches

Value

returns a dataframe of match top team stats

Examples


try({
library(dplyr)
library(tidyr)
results <- fotmob_get_matches_by_date(date = "20210926")
match_ids <- results %>%
  dplyr::select(primary_id, ccode, league_name = name, match_id) %>%
  dplyr::filter(league_name == "Premier League", ccode == "ENG") %>%
  dplyr::pull(match_id)
match_ids # 3609987 3609979
details <- fotmob_get_match_team_stats(match_ids)
})


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