Learn R Programming

chessR (version 1.5.2)

get_game_ending: Return the game ending

Description

This function returns a character vector of how the game ended from chess.dom.

Usage

get_game_ending(termination_string, white, black)

Value

A character vector of the game ending for each game

Arguments

termination_string

A character vector in the chess.com extracted data frame called 'Termination'

white

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

black

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

Examples

Run this code
if (FALSE) {
get_game_ending(termination_string = df$Termination, df$White, df$Black)
}

Run the code above in your browser using DataLab