Description Usage Arguments Error Code Ranges Author(s) See Also Examples
View source: R/ParameterChecks_CoopGame.R
stopOnInvalidClaimsVector checks if claims vector in a bankruptcy game is specified correctly. Validation result gets stored to object paramCheckResult in case an error occured and causes stop otherwise.
| 1 | stopOnInvalidClaimsVector(paramCheckResult, n, d)
 | 
| paramCheckResult | list object for check result with list element 'errCode' for the error code and 'errMessage' for the error message. | 
| n | represents the number of players | 
| 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 | 
| 1160 | Number of claims must equal the number of players in the bankruptcy game! | 
| 1161 | Invalid claims vector as d must be numeric | 
Jochen Staudacher jochen.staudacher@hs-kempten.de
Other ParameterChecks_CoopGame: 
getEmptyParamCheckResult(),
stopOnInconsistentEstateAndClaimsVector(),
stopOnInvalidAllocation(),
stopOnInvalidBoolean(),
stopOnInvalidCoalitionS(),
stopOnInvalidDictator(),
stopOnInvalidEstate(),
stopOnInvalidGameVector(),
stopOnInvalidGrandCoalitionN(),
stopOnInvalidIndex(),
stopOnInvalidLeftRightGloveGame(),
stopOnInvalidNChooseB(),
stopOnInvalidNumberOfPlayers(),
stopOnInvalidNumber(),
stopOnInvalidQuota(),
stopOnInvalidVetoPlayer(),
stopOnInvalidWeightVector(),
stopOnParamCheckError()
| 1 2 3 4 | library(CoopGame)
paramCheckResult=getEmptyParamCheckResult()
validClaimsVector = c(100,150,200)
stopOnInvalidClaimsVector(paramCheckResult, n=3, d=validClaimsVector)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.