stopOnInvalidDictator: Parameter Function stopOnInvalidDictator
Description
stopOnInvalidDictator checks if dictator
is specified correctly in a dictator game.
Validation result gets stored to object paramCheckResult
in case an error occured and causes calculation to stop.
Usage
stopOnInvalidDictator(paramCheckResult, dictator, n = NULL)
Arguments
paramCheckResult
list object for check result with list element 'errCode' for the error code
and 'errMessage' for the error message.
dictator
Number of the dictator
n
represents the number of players
Error Code Ranges
Error codes and messages shown to user if error on parameter check occurs
Error Code
Message
1090
'dictator' does not contain only one single element
# NOT RUN {library(CoopGame)
paramCheckResult=getEmptyParamCheckResult()
validDictator = 3stopOnInvalidDictator(paramCheckResult,dictator=validDictator,n=3)
# }