Description Usage Arguments Value Examples
View source: R/get_game_list.R
Create an SQL query to opendotas API and extracts a list of games from the public_matches table. This is only a sample of matches, not all are included here. Returns a vector of match ID's ready for use in the get_games() function.
1 2 | get_game_list(num_matches, from_time, to_time, min_mmr = 1,
min_duration = 1200, num_open_profile = 0)
|
num_matches |
Number of matches you want to extract |
from_time |
Earliest time of match in YMD text format. |
to_time |
Latest start time of the match in YMD text format. |
min_mmr |
Minimum average MMR of the match (defaulted to 1) |
min_duration |
Minium match duration in seconds, defaulted to 1200 (20 minutes) |
num_open_profile |
Minium number of open profiles in the game. Higher number here gives higher percentage of games that are actually parsed. |
Returns data frame of results fulfilling the parameters input.
1 2 3 4 5 6 7 | ## Not run:
match_ids <- get_game_list(num_matches = 100,
from_time = "20170101" ,
to_time = "20170423",
min_mmr = 4000)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.