Description Usage Arguments Examples
View source: R/get_latest_games.R
Obtain the latest parsed games, this is a good function to use if you're not picky on which dates or MMR your data is, but want fast data. The latest games will always have parsed games opposed to the general game list gotten from get_game_list(), wich only contains 5 - 10 games.
1 2 | get_latest_games(num_games, min_duration = 1200, wait_time = 1,
output = "all")
|
num_games |
Min number of games you want to obtain (could get 1-10 more) |
min_duration |
Do you want to exclude games below a certain duration threshold? We default it to 1200seconds (20 minutes), as super short games often contain early abandons and griefers. |
wait_time |
Wait time between API calls, default to 1.00 (which is what opendota wants you to stay below, so don<c2><a8>t change unless you have a good reason and talked to opendota about it). |
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, note the R file must also output to output_list() |
1 2 3 4 | ## Not run:
parsed_games <- get_latest_games(100)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.