Learn R Programming

bigchess (version 1.9.1)

stat_moves: Extract statistics of moves

Description

Extract statistics of moves (counts figure moves) from movetext vector into data frame

Usage

stat_moves(movetext, sides = "both")

Arguments

movetext

movetext string (or string vector). The standard English values are required: pawn = "P" (often not used), knight = "N", bishop = "B", rook = "R", queen = "Q", and king = "K".

sides

"both" (default),"white" or "black"

Value

Data frame containing moves count statistics for white and for black and total.

Examples

Run this code
# NOT RUN {
stat_moves("1. e4 e5 2. Nf3 Nf5 3. d5 ")
# }

Run the code above in your browser using DataLab