# NOT RUN {
library(CoopGame)
isMonotonicGame(c(0,0,0,1,0,1,1))
# }
# NOT RUN {
#Example of a non-monotonic game
library(CoopGame)
v1=c(4,2,5,2,3,6,10)
isMonotonicGame(v1)
#Example of a monotonic game
library(CoopGame)
v2=c(2,5,7,10, 9, 13,20)
isMonotonicGame(v2)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab