Learn R Programming

gogamer (version 0.4.3)

get_props: Find tag properties in sgf

Description

Find tag properties in sgf

Usage

get_props(sgf, tags)

Arguments

sgf
scalar character of texts in sgf format
tags
character vector of tags

Value

Named list of game properties

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.