Description Usage Arguments Value Examples
Get matches from the DB
1 | get_matches(expansions, date = NULL, team = NULL, max_n = 10)
|
expansions |
A list of wanted match expansions as defined in match_queries |
date |
A tuple of from->to dates in format c('yyyy-mm-dd', 'yyyy-mm-dd'), filters matches inclusively |
team |
A string name, if passed will return matches for only this team |
max_n |
The maximum number of games to return, for now limit set to NULL |
A data.frame of matches which matches query
1 2 3 | basic_expansions = c('home_team', 'away_team', 'home_goals', 'away_goals')
get_matches(basic_expansions, max_n=NULL) # get all matches
get_matches(basic_expansions, team='Arsenal') # get Arsenal matches (max 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.