return_num_moves: Return the number of moves in a game

View source: R/analysis_functions.R

return_num_movesR Documentation

Return the number of moves in a game

Description

This function returns the number of moves played in each game. The function accepts a vector of chess Moves data in PGN notation, usually called 'Moves'

Usage

return_num_moves(moves_string)

Arguments

moves_string

A character vector of chess Moves data in PGN notation usually called 'Moves' in extracted data

Value

A numeric vector of the number of moves in each game

Examples

## Not run: 
return_num_moves(moves_string = df$Moves)

## End(Not run)


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