tree_eco {bigchess}R Documentation

Compute ECO tree

Description

Compute ECO tree (frequencies and winning percent)

Usage

tree_eco(df, topn = 0)

Arguments

df

data frame containg ECO and Result columns

topn

integer, default 0, indicating how many top openings should be included, 0 means show all openings

Value

Data frame containg White_score (White winning percent), Draws_percent, Black_score and N (number of games). Sorted by power of ECO (White_score * N which describes popularity and score of move) descending.

Examples

f <- system.file("extdata", "Kasparov.gz", package = "bigchess")
con <- gzfile(f,encoding = "latin1")
df <- read.pgn(con,quiet = TRUE,stat.moves = FALSE, add.tags = "ECO")

[Package bigchess version 1.9.1 Index]