powered by
stopOnInvalidIndex checks if coalition function (in the form of either v or A) is specified correctly and causes causes calculation to stop otherwise.
stopOnInvalidIndex(paramCheckResult, index, n = NULL)
list object for check result with list element 'errCode' for the error code and 'errMessage' for the error message.
index which is checked to be a valid index
represents the number of players
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(), stopOnInvalidLeftRightGloveGame(), stopOnInvalidNChooseB(), stopOnInvalidNumberOfPlayers(), stopOnInvalidNumber(), stopOnInvalidQuota(), stopOnInvalidVetoPlayer(), stopOnInvalidWeightVector(), stopOnParamCheckError()
getEmptyParamCheckResult()
stopOnInconsistentEstateAndClaimsVector()
stopOnInvalidAllocation()
stopOnInvalidBoolean()
stopOnInvalidClaimsVector()
stopOnInvalidCoalitionS()
stopOnInvalidDictator()
stopOnInvalidEstate()
stopOnInvalidGameVector()
stopOnInvalidGrandCoalitionN()
stopOnInvalidLeftRightGloveGame()
stopOnInvalidNChooseB()
stopOnInvalidNumberOfPlayers()
stopOnInvalidNumber()
stopOnInvalidQuota()
stopOnInvalidVetoPlayer()
stopOnInvalidWeightVector()
stopOnParamCheckError()
# NOT RUN { library(CoopGame) v=c(1:7) paramCheckResult=getEmptyParamCheckResult() validIndex = 5 stopOnInvalidIndex(paramCheckResult, index=validIndex, n=3) # }
Run the code above in your browser using DataLab