Description Usage Arguments Value Examples
View source: R/get_stats_friends.R
This function will return the complete CS Go Statistics for all public friends of the user_id (input).
1  | get_stats_friends(api_key, user_id, n_return = "all")
 | 
api_key | 
 string with the key provided by the steam API. PS: If you don't have a API key yet run   | 
user_id | 
 string with the steam user ID. Steam ID is the NUMBER OR NAME at the end of your steam profile URL. ex: '76561198263364899'. PS: The user should have a public status.  | 
n_return | 
 numeric indicating the number of friends to return, to return all use n_return = "all" (the default is "all").  | 
a list of two data frames
friends_stats: data frame with all the CS Go statistics of all public friends of the user ID.
friends: data frame with all the CS Go friends of the user ID (public and non public).
1 2 3 4 5 6 7 8 9 10 11  | ## Not run: 
## It is necessary to fill the "api_key" parameter to run the example
# set the "plan" to collect the data in parallel!!!!
future::plan(future::multisession, workers = parallel::detectCores())
fr_list <- get_stats_friends(api_key = 'XXX', user_id = '76561198263364899')
fr_list$friends_stats
fr_list$friends
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.