Learn R Programming

CoopGame (version 0.2.2)

apexGameVector: Compute game vector for an apex game

Description

Game vector for an apex game: For further information see apexGame

Usage

apexGameVector(n, apexPlayer)

Arguments

n

represents the number of players

apexPlayer

specifies the number of the apex player

Value

Game vector for the apex game

References

Peters H. (2015) Game Theory: A Multi-Leveled Approach, 2nd Edition, Springer, pp. 164--165

Examples

Run this code
# NOT RUN {
library(CoopGame)
apexGameVector(n=3,apexPlayer=2)

# }
# NOT RUN {
library(CoopGame)
(v <- apexGameVector(n=4,apexPlayer=3))
#[1] 0 0 0 0 0 1 0 1 0 1 1 1 1 1 1
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab