get_games {opendotaR}R Documentation

Fetch the games from the opendota API.

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

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

## 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)

[Package opendotaR version 0.1.4 Index]