stopOnInvalidNChooseB {CoopGame}R Documentation

Parameter Function stopOnInvalidNChooseB

Description

stopOnInvalidNChooseB checks if definition of n choose b is specified correctly and causes stop otherwise.

Usage

stopOnInvalidNChooseB(paramCheckResult, n, b)

Arguments

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

b

number of players in subset

Error Code Ranges

Error codes and messages shown to user if error on parameter check occurs

Error Code Message
1080 Number of players 'n' is 'NULL'
1081 Number of involved players 'b' is 'NULL'
1082 Number of players 'n' is not 'numeric'
1083 Number of involved players 'b' is not 'numeric
1084 Number of involved players 'b' is greater than of players 'n'

Author(s)

Jochen Staudacher jochen.staudacher@hs-kempten.de

Johannes Anwander anwander.johannes@gmail.com

See Also

Other ParameterChecks_CoopGame: getEmptyParamCheckResult(), stopOnInconsistentEstateAndClaimsVector(), stopOnInvalidAllocation(), stopOnInvalidBoolean(), stopOnInvalidClaimsVector(), stopOnInvalidCoalitionS(), stopOnInvalidDictator(), stopOnInvalidEstate(), stopOnInvalidGameVector(), stopOnInvalidGrandCoalitionN(), stopOnInvalidIndex(), stopOnInvalidLeftRightGloveGame(), stopOnInvalidNumberOfPlayers(), stopOnInvalidNumber(), stopOnInvalidQuota(), stopOnInvalidVetoPlayer(), stopOnInvalidWeightVector(), stopOnParamCheckError()

Examples

library(CoopGame)
paramCheckResult=getEmptyParamCheckResult()
validN = 3
validAndConsistentB = 2
stopOnInvalidNChooseB(paramCheckResult, n=validN, b=validAndConsistentB)


[Package CoopGame version 0.2.2 Index]