browse_eco_opening {bigchess} | R Documentation |
Browse ECO opening
Description
Browse ECO opening winning and drawing percentages by table and barplot
Usage
browse_eco_opening(df, topn = 0)
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
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)
[Package bigchess version 1.9.1 Index]