stopOnInvalidNumber {CoopGame}R Documentation

Parameter Function stopOnInvalidNumber

Description

stopOnInvalidNumber checks definition is the parameter a number

Usage

stopOnInvalidNumber(paramCheckResult, number)

Arguments

paramCheckResult

list object for check result with list element 'errCode' for the error code and 'errMessage' for the error message.

number

input which is checked to be valid number

Error Code Ranges

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

Error Code Message
1130 Parameter is not a number
1131 Parameter is not of length 1

Author(s)

Jochen Staudacher jochen.staudacher@hs-kempten.de

Franz Mueller

See Also

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

Examples

library(CoopGame)
paramCheckResult=getEmptyParamCheckResult()
validNumber = 5
stopOnInvalidNumber(paramCheckResult, validNumber)


[Package CoopGame version 0.2.2 Index]