get_games: Fetch the games from the opendota API.

Description Usage Arguments Value Examples

Description

Takes a vector of numerical value match ID's of dota2 replays, and attempts to fetch them from the opendota API only parsed matches are output.

Usage

1
get_games(game_vec, wait_time = 1, output = "all", verbose = TRUE)

Arguments

game_vec

Numeric vector of match ID's

wait_time

how long to wait (in seconds) between each API call, default is 1 sec (opendota asks you not to send more than 1 call per second)

output

Defaulted to "all", which will extract entire JSON, if not all, it should have the path to an R file that will be sourced and create some output, not the R file must also output to output_list()

verbose

Give live information on status of parsing, if FALSE no text is output to console.

Value

Returns a list of objects, if output == "all" it's a list of JSON outputs.

Examples

1
2
3
4
5
6
7
8
## Not run: 
match_ids <- get_game_list(num_matches = 100,
from_time = "20170101",
to_time = "20170423",
min_mmr = 4000)
get_games(match_ids)

## End(Not run)

dracovich/opendotaR documentation built on May 15, 2019, 1:53 p.m.