get_game_ending: Return the game ending

View source: R/analysis_functions.R

get_game_endingR Documentation

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)

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

Value

A character vector of the game ending for each game

Examples

## Not run: 
get_game_ending(termination_string = df$Termination, df$White, df$Black)

## End(Not run)


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