Learn R Programming

CoopGame (version 0.2.2)

getPlayersFromBitVector: Extract players from bit vector

Description

getPlayersFromBitVector determines players involved in a coalition from a binary vector.

Usage

getPlayersFromBitVector(bitVector)

Arguments

bitVector

represents the binary vector

Value

playerVector contains the numbers of the players involved in the coalition

Examples

Run this code
# NOT RUN {
library(CoopGame)
myBitVector <-c(1,0,1,0)
(players<-getPlayersFromBitVector(myBitVector))

# }

Run the code above in your browser using DataLab