View source: R/get_player_data.R
get_player_data | R Documentation |
A function to fetch the match data of a specific player
get_player_data(player_id, match_vec, wait_time = 1, summary_info = TRUE)
player_id |
The numeric ID of your Dota 2 account, numeric |
match_vec |
A numeric vector of at least one match ID, numeric |
wait_time |
Wait time between API calls, numeric, default to 1s |
summary_info |
Set to TRUE if you want summary information about how many of the requested matchs are parsed by OpenDota, how many error occured when calling the API, etc. |
The function returns a nested list. Each element in the list is a parsed JSON file of a match.
## Not run: get_player_data(123456, 123456) ## End(Not run) ## Not run: get_player_data(123456, c(123456, 78910)) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.