View source: R/get_model_data.R
| get_model_data | R Documentation |
Joins team averages for goals and form, past fixture history, league position in season and xG averages in recent games.
get_model_data(x = form_fixture_history_league_position())
x |
A |
This function returns a data.frame with the following columns:
Character values for the team
Character represening the fixture i.e. Arsenal v Everton
Character values for the date that the match was played
Numeric fulltime home goals scored in the fixture
Numeric fulltime away goals scored in the fixture
Numeric running average of points accumulated (3 for a win, 1 for a draw) either home or away
Numeric running average of goals scored either home or away
Numeric running average of goals conceded either home or away
Numeric logical represnting whether the team was home or away
Numeric logical represnting whether the team won the fixture
Numeric logical represnting whether the team drew the fixture
Numeric running average of goals scored either home or away
Numeric running average of goals conceded either home or away
Character representing the premier league season
Numeric representing the points gained by the team in the fixture
Numeric representing the cumulative points gained by the team after n games in the season
Numeric representing the game count. A team will play 38 games in the modern era of the premier league
Numeric representing a team's league position after n games in a season
Daf Howells <dafhowells@yahoo.co.uk>
## Not run: model_data <- get_model_data() ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.