# \donttest{
try({
library(dplyr)
library(tidyr)
# one league
fotmob_get_league_tables(
country = "ENG",
league_name = "Premier League"
)
# one league, by id
fotmob_get_league_tables(
league_id = 47
)
# multiple leagues (could also use ids)
league_tables <- fotmob_get_league_tables(
country = c("ENG", "ESP" ),
league_name = c("Premier League", "LaLiga")
)
# look at tables if only away matches are considered
league_tables %>%
dplyr::filter(table_type == "away")
})
# }
Run the code above in your browser using DataLab