browse_eco_opening: Browse ECO opening

Description Usage Arguments Value Examples

View source: R/browse_eco_opening.R

Description

Browse ECO opening winning and drawing percentages by table and barplot

Usage

1

Arguments

df

data frame with imported chess games from read.pgn() function.

topn

integer, default is 0, passed to tree_eco function (indicating how many top openings should be included).

Value

Data frame from tree_eco function and plot from plot_tree_eco function.

Examples

1
2
3
4
5
f <- system.file("extdata", "Kasparov.gz", package = "bigchess")
con <- gzfile(f,encoding = "latin1")
df <- read.pgn(con,quiet = TRUE,ignore.other.games = TRUE,stat.moves = FALSE, add.tags = "ECO")
# Analyze 20 best ECO Kasparov openings:
bo <- browse_eco_opening(subset(df,grepl("Kasparov",White)),20)

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