powered by
stopOnInvalidGrandCoalitionN checks if grand coalition N is specified correctly and causes calculation to stop otherwise.
stopOnInvalidGrandCoalitionN(paramCheckResult, N)
list object for check result with list element 'errCode' for the error code and 'errMessage' for the error message.
represents the grand coalition.
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(), stopOnInvalidIndex(), stopOnInvalidLeftRightGloveGame(), stopOnInvalidNChooseB(), stopOnInvalidNumberOfPlayers(), stopOnInvalidNumber(), stopOnInvalidQuota(), stopOnInvalidVetoPlayer(), stopOnInvalidWeightVector(), stopOnParamCheckError()
getEmptyParamCheckResult()
stopOnInconsistentEstateAndClaimsVector()
stopOnInvalidAllocation()
stopOnInvalidBoolean()
stopOnInvalidClaimsVector()
stopOnInvalidCoalitionS()
stopOnInvalidDictator()
stopOnInvalidEstate()
stopOnInvalidGameVector()
stopOnInvalidIndex()
stopOnInvalidLeftRightGloveGame()
stopOnInvalidNChooseB()
stopOnInvalidNumberOfPlayers()
stopOnInvalidNumber()
stopOnInvalidQuota()
stopOnInvalidVetoPlayer()
stopOnInvalidWeightVector()
stopOnParamCheckError()
# NOT RUN { library(CoopGame) paramCheckResult=getEmptyParamCheckResult() validGrandCoalition = c(1,2,3,4,5) stopOnInvalidGrandCoalitionN(paramCheckResult, N=validGrandCoalition) # }
Run the code above in your browser using DataLab