get_props: Find tag properties in sgf

Description Usage Arguments Details Value

View source: R/sgftagparser.R

Description

Find tag properties in sgf

Usage

1
get_props(sgf, tags)

Arguments

sgf

scalar character of texts in sgf format

tags

character vector of tags

Details

This function finds the first appearance of each tag and returns the property (contents within the bracket). It suits for finding propeties unique to a game (e.g. player names or rule set), but not for extracting tags appearing for multiple times, such as moves.

Value

Named list of game properties


kota7/gogamer documentation built on May 20, 2019, 1:10 p.m.