View source: R/fotmob_players.R
| fotmob_get_match_players | R Documentation |
Returns match details from fotmob.com
fotmob_get_match_players(match_ids)
match_ids |
a vector of strings or numbers representing matches |
returns a dataframe of match players
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))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.