# NOT RUN {
library(CoopGame)
isAdditiveGame(c(1,1,1,2,2,2,3))
# }
# NOT RUN {
#The following game is not additive
library(CoopGame)
v=c(0,0,0,40,50,20,100)
isAdditiveGame(v)
#The following game is additive
library(CoopGame)
v=c(1,1,1,1, 2,2,2,2,2,2, 3,3,3,3, 4)
isAdditiveGame(v)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab