config: Settings to collect Dota2 matches.

Description Usage Arguments Value Examples

View source: R/config.R

Description

This function is used to define the settings that will be used to collect the data, such as type of game, skill etc ...

Usage

1
2
config(key = NULL, game_mode = c(2, 22), lobby_type = 7, skill = 3,
  duration = 900, public_account_id = 5, n_history_matches = 10)

Arguments

key

The api key obtained from Steam. If you don't have one please visit https://steamcommunity.com/dev in order to do so.

game_mode

The game mode can be a vector with one or more of these values:

  • 0 - Unknown

  • 1 - All Pick

  • 2 - Captain's Mode

  • 3 - Random Draft

  • 4 - Single Draft

  • 5 - All Random

  • 6 - Intro

  • 7 - Diretide

  • 8 - Reverse Captain's Mode

  • 9 - The Greeviling

  • 10 - Tutorial

  • 11 - Mid Only

  • 12 - Least Played

  • 13 - Limited Heroes

  • 14 - Compendium Matchmaking

  • 15 - Custom

  • 16 - Captain's Draft

  • 17 - Balanced Draft

  • 18 - Ability Draft

  • 19 - Event

  • 20 - Random Death Match

  • 21 - 1v1 Mid

  • 22 - All Draft

  • 23 - Turbo

  • 24 - Mutation

(Default: 2, 22)

lobby_type

The lobby type can be a vector with one or more of these values:

  • 0 - Normal

  • 1 - Practice

  • 2 - Tournament

  • 3 - Tutorial

  • 4 - Coop Bots

  • 5 - Ranked Team MM

  • 6 - Ranked Solo MM

  • 7 - Ranked

  • 8 - 1v1 Mid

  • 9 - Battle Cup

(Default: 7)

skill

The skill bracket can be a vector with one or more of these values (except 0):

  • 0 - Any (If is set with this value, just it will be used)

  • 1 - Normal

  • 2 - High

  • 3 - Very High

(Default: 3)

duration

The minimum duration of a match in seconds. (Default: 900)

public_account_id

The minimum of public account's id. (Default: 5)

n_history_matches

The amount of history matches that must be collected for each player in the game. (Default: 10)

database_name

The name of database that the data will be stored in MongoDB. (Default: dota2)

Value

A message saying that the settings have been logged.

Examples

1
2
# An available API key
config(key = 'xxxxx-xxxxx')

Andryas/RDota2Plus documentation built on May 7, 2019, 8:19 a.m.