powered by
stopOnInvalidNChooseB checks if definition of n choose b is specified correctly and causes stop otherwise.
stopOnInvalidNChooseB(paramCheckResult, n, b)
list object for check result with list element 'errCode' for the error code and 'errMessage' for the error message.
represents the number of players
number of players in subset
Error codes and messages shown to user if error on parameter check occurs
Other ParameterChecks_CoopGame: getEmptyParamCheckResult(), stopOnInconsistentEstateAndClaimsVector(), stopOnInvalidAllocation(), stopOnInvalidBoolean(), stopOnInvalidClaimsVector(), stopOnInvalidCoalitionS(), stopOnInvalidDictator(), stopOnInvalidEstate(), stopOnInvalidGameVector(), stopOnInvalidGrandCoalitionN(), stopOnInvalidIndex(), stopOnInvalidLeftRightGloveGame(), stopOnInvalidNumberOfPlayers(), stopOnInvalidNumber(), stopOnInvalidQuota(), stopOnInvalidVetoPlayer(), stopOnInvalidWeightVector(), stopOnParamCheckError()
getEmptyParamCheckResult()
stopOnInconsistentEstateAndClaimsVector()
stopOnInvalidAllocation()
stopOnInvalidBoolean()
stopOnInvalidClaimsVector()
stopOnInvalidCoalitionS()
stopOnInvalidDictator()
stopOnInvalidEstate()
stopOnInvalidGameVector()
stopOnInvalidGrandCoalitionN()
stopOnInvalidIndex()
stopOnInvalidLeftRightGloveGame()
stopOnInvalidNumberOfPlayers()
stopOnInvalidNumber()
stopOnInvalidQuota()
stopOnInvalidVetoPlayer()
stopOnInvalidWeightVector()
stopOnParamCheckError()
# NOT RUN { library(CoopGame) paramCheckResult=getEmptyParamCheckResult() validN = 3 validAndConsistentB = 2 stopOnInvalidNChooseB(paramCheckResult, n=validN, b=validAndConsistentB) # }
Run the code above in your browser using DataLab