Learn R Programming

TUvalues (version 0.1.0)

predecessor: Predecessor

Description

Given a permutation 0 of players and a player i, calculate the set of predecessors of the player i in the order 0

Usage

predecessor(permutation, player, include_player = FALSE)

Value

The set of predecessors of the player i in the order 0

Arguments

permutation

A permutation of the players

player

Number of the player i

include_player

Whether the player i is included as predecessor of itself or not