View source: R/fotmob_matches.R
| fotmob_get_matches_by_date | R Documentation |
Returns match results for all matches played on the selected date from fotmob.com
fotmob_get_matches_by_date(dates)
dates |
a vector of string-formatted dates in "Ymd" format, e.g. "20210926". An attempt is made to coerce the input to the necessary format if a date is passed in. |
returns a dataframe of match results
try({
library(dplyr)
library(tidyr)
results <- fotmob_get_matches_by_date(date = c("20210925", "20210926"))
results %>%
dplyr::select(primary_id, ccode, league_name = name, match_id)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.