load_fotmob_matches_by_date {worldfootballR}R Documentation

Load pre saved fotmob match ids by date

Description

Loading version of fotmob_get_matches_by_date. Goes back to August 2017.

Usage

load_fotmob_matches_by_date(country, league_name, league_id, cached = TRUE)

Arguments

country

Three character country code. Can be one or multiple. If provided, 'league_name' must also be provided (of the same length)

league_name

League names. If provided, 'country' must also be provided (of the same length).

league_id

Fotmob ID for the league. Only used if 'country' and 'league_name' are not specified.

cached

Whether to load the dataframe from the data CSV. This is faster and most likely what you want to do, unless you identify a league that's being tracked by fotmob that's not in this pre-saved CSV.

Value

returns a dataframe of league match ids

Examples

## Not run: 
try({
## just load match ids
load_fotmob_matches_by_date(
  country = "ENG",
  league_name = "Premier League"
)

## can also do it for multiple leagues
load_fotmob_matches_by_date(
  country =     c("ENG",            "ESP"   ),
  league_name = c("Premier League", "LaLiga")
)
})

## End(Not run)

[Package worldfootballR version 0.6.2 Index]