get_matches: Get matches from the DB

Description Usage Arguments Value Examples

View source: R/neo4j_query.R

Description

Get matches from the DB

Usage

1
get_matches(expansions, date = NULL, team = NULL, max_n = 10)

Arguments

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

Value

A data.frame of matches which matches query

Examples

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)

Tennessee-Wallaceh/footr documentation built on Dec. 18, 2021, 4:07 p.m.