pm_eloPrepDatabase: pm_eloPrepDatabase

Description Usage Arguments Value

View source: R/eloFunctions.R

Description

Prepare dictionaries for playerScore and playerMatches for unseen data (i.e. new players). If the database does not exist (eloDB=NA) a new database will be generated.

Usage

1
2
3
4
5
6
7
pm_eloPrepDatabase(
  eloDB = NA,
  matchDB = NA,
  unseenDataPlayers,
  defaultScore = 1500,
  defaultMatches = 0
)

Arguments

eloDB

a dictionary of player ELO scores, or NA to create a new one

matchDB

a dictionary of matches a player has played, or NA

unseenDataPlayers

list of players in the (as yet) unseen data

defaultScore

the ELO for players without experience. Default of 1500

defaultMatches

the number of matches for new players. Default of 0

Value

a list with two items: a dictionary for ELO scores, a dictionary for number of matches played


quietsnooze/pmpackage documentation built on March 7, 2021, 3:50 p.m.