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'

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

if (FALSE) {
return_num_moves(moves_string = df$Moves)
}