get_winner: Return the game winner

View source: R/analysis_functions.R

get_winnerR Documentation

Return the game winner

Description

This function returns a character vector of the usernames of the game winners

Usage

get_winner(result_column, white, black)

Arguments

result_column

A character vector in the extracted data frame called 'Result'

white

A character vector in the extracted data frame called 'White' for the player on white

black

A character vector in the extracted data frame called 'Black' for the player on black

Value

A character vector of the game ending for each game

Examples

## Not run: 
get_winner(df$Result, df$White, df$Black)

## End(Not run)


chessR documentation built on Oct. 5, 2022, 1:07 a.m.