get_fixtures: Get PL fixtures played and/or yet to play

Description Usage Arguments Details Value Examples

View source: R/get_fixtures.R

Description

Get EPL fixtures played and/or yet to play in season, including fixture difficulty as estimated by the official FPL site.

Usage

1

Arguments

IDs

a numeric with one or more team IDs

gameweeks

range of gameweeks to retrieve picks for; if 'NULL', retrieves all gameweeks in season so far.

Details

Team ID can be found when examining points on the official FPL site, appearing after the '/entry/' part of the URL, e.g. '1' in 'https://fantasy.premierleague.com/entry/1/event/12'

Value

a dataframe with two rows per fixture, one for the home team and one for the away team, including fixture difficulty ('difficulty'; scale of 1 - 5) and completed status ('finished'; TRUE or FALSE).

Examples

1
2
3
# get completed fixtures
get_fixtures() %>%
  filter(finished == TRUE)

JoGall/FantasyPL documentation built on Nov. 14, 2019, 3:38 p.m.