coalitions: Coalitions

Description Usage Arguments Value Examples

View source: R/coalitions.R

Description

Possible coalitions with n players.

Usage

1

Arguments

n

Number of players

Value

This function gives the coalitions in a binary mode and usual way.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
coalitions(3)
#$Binary
#    P1 P2 P3
#0    0  0  0
#1    1  0  0
#2    0  1  0
#3    0  0  1
#12   1  1  0
#13   1  0  1
#23   0  1  1
#123  1  1  1
#
#$Classic
#[1]   0   1   2   3  12  13  23 123

InventorymodelPackage documentation built on May 29, 2017, 9:39 p.m.