Learn R Programming

CoopGame (version 0.2.2)

cardinalityGameVector: Compute game vector for a cardinality game

Description

Game vector for a cardinality game: For further information see cardinalityGame

Usage

cardinalityGameVector(n)

Arguments

n

represents the number of players

Value

Game vector for the cardinality game

Examples

Run this code
# NOT RUN {
library(CoopGame)
cardinalityGameVector(n=3)

# }
# NOT RUN {
library(CoopGame)
(v <- cardinalityGameVector(n=4))
#[1] 1 1 1 1 2 2 2 2 2 2 3 3 3 3 4
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab