Description Usage Arguments Error Code Ranges Author(s) See Also Examples
View source: R/ParameterChecks_CoopGame.R
stopOnInconsistentEstateAndClaimsVector checks if sum of claims is greater or equal estate (in bankruptcy games). Calculation stops with an error message if claims vector and estate are inconsistent.
1 | stopOnInconsistentEstateAndClaimsVector(paramCheckResult, E, d)
|
paramCheckResult |
list object for check result with list element 'errCode' for the error code and 'errMessage' for the error message. |
E |
is the value of the estate in a bankruptcy game |
d |
numeric vector which contains the claims of each player in a bankruptcy game |
Error codes and messages shown to user if error on parameter check occurs
Error Code | Message |
1170 | Estate E must be less or equal the sum of claims! |
Jochen Staudacher jochen.staudacher@hs-kempten.de
Other ParameterChecks_CoopGame:
getEmptyParamCheckResult()
,
stopOnInvalidAllocation()
,
stopOnInvalidBoolean()
,
stopOnInvalidClaimsVector()
,
stopOnInvalidCoalitionS()
,
stopOnInvalidDictator()
,
stopOnInvalidEstate()
,
stopOnInvalidGameVector()
,
stopOnInvalidGrandCoalitionN()
,
stopOnInvalidIndex()
,
stopOnInvalidLeftRightGloveGame()
,
stopOnInvalidNChooseB()
,
stopOnInvalidNumberOfPlayers()
,
stopOnInvalidNumber()
,
stopOnInvalidQuota()
,
stopOnInvalidVetoPlayer()
,
stopOnInvalidWeightVector()
,
stopOnParamCheckError()
1 2 3 4 5 | library(CoopGame)
paramCheckResult=getEmptyParamCheckResult()
consistentClaims= c(26,27,55,57)
consistentE = 110
stopOnInconsistentEstateAndClaimsVector(paramCheckResult, d=consistentClaims, E=consistentE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.