fotmob_get_match_players: Get fotmob match player details by match id

View source: R/fotmob_players.R

fotmob_get_match_playersR Documentation

Get fotmob match player details by match id

Description

Returns match details from fotmob.com

Usage

fotmob_get_match_players(match_ids)

Arguments

match_ids

a vector of strings or numbers representing matches

Value

returns a dataframe of match players

Examples


try({
library(dplyr)
library(tidyr)
## single match
players <- fotmob_get_match_players(3610132)
salah_id <- "292462"
players %>%
  dplyr::filter(id == salah_id) %>%
  dplyr::select(player_id = id, stats) %>%
  tidyr::unnest(stats)

## multiple matches
fotmob_get_match_players(c(3609987, 3609979))
})


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