get_prem_history: Get all historic Premier League results

View source: R/get_prem_history.R

get_prem_historyR Documentation

Get all historic Premier League results

Description

Extract current season Premier League match data and combines it with previous seasons in a data frame.

Usage

get_prem_history()

Value

This function returns a data.frame with the following columns:

div

Character representing the division, default E0 which is the value for the Premier League

date

Date when the fixture was played

home_team

Character showing team playing at home

home_team

Character showing team playing away

fthg

Numeric fulltime home goals scored in the fixture

ftag

Numeric fulltime away goals scored in the fixture

Author(s)

Daf Howells <dafhowells@yahoo.co.uk>

Examples

## Not run: 
prem_history <- get_prem_history()

## End(Not run)

dafyddhowells/randy documentation built on Nov. 1, 2022, 4:01 p.m.