pgn_to_df: Parse PGN text into a dataframe EXPERIMENTAL

Description Usage Arguments Value

View source: R/pgn_to_df.R

Description

**USE WITH CAUTION** This is an experimental function that attempts to parse raw (un-annotated) Portable Game Notation (PGN) files into a dataframe. It is buggy and relies heavily on the PGN being in the correct format. It is also very slow!

Usage

1
pgn_to_df(pgn, pgn_tags = "seven")

Arguments

pgn

A raw (un-annotated) PGN text file (can contain multiple PGNs)

pgn_tags

one of

  • "seven" - The 'Seven tag roster' (default)

  • "all_present" - All tags found in the PGN file

Value

A dataframe


cj-holmes/ggambit documentation built on July 22, 2021, 12:56 p.m.