findIfWon: Find if player won in interaction

Description Usage Arguments Details Value

Description

Given a row of an interData object determines if the player in question was the winner.

Usage

1
findIfWon(player, intData, rows = 1:nrow(intData$interactions))

Arguments

player

a player from the row in the interData object

intData

an object of class "interData" from which an interaction is to be evaluated

row

the row of the interData data frame to evaluate

Details

The function looks at an individual row of a data frame from an interData object and returns a logical of wether or not the player was victorious. Will return NA if player is not in row

Value

logical indicating the wether the player won or not


nmmarquez/linHierarchy documentation built on May 23, 2019, 9:28 p.m.