Learn R Programming

CoopGame (version 0.2.2)

divideTheDollarGameVector: Compute game vector for a divide-the-dollar game

Description

Game vector for a divide-the-dollar game: For further information see divideTheDollarGame

Usage

divideTheDollarGameVector(n)

Arguments

n

represents the number of players

Value

Game vector for the specified divide-the-dollar game

References

Jackson M.O. (2008) Social and Economic Networks, Princeton University Press, p. 413

Examples

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

# }
# NOT RUN {
library(CoopGame)
(v <- divideTheDollarGameVector(n=4))
#Output: 
# [1] 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab