tree_eco: Compute ECO tree

Description Usage Arguments Value Examples

View source: R/tree_eco.R

Description

Compute ECO tree (frequencies and winning percent)

Usage

1
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

1
2
3
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")

rosawojciech/bigchess documentation built on Jan. 19, 2021, 5:54 a.m.