play_node_to_df: Turn a Board Game Geek file into an R Data Frame

Description Usage Arguments Value

View source: R/manipulate_bg_plays.R

Description

This function takes a Board Game Geek xml node. It outputs a data frame where all plays are sorted by play_id (listed in the data fram as 'id“) and date.

Usage

1
play_node_to_df(xml_node, player_data = "players", game_data = "item")

Arguments

xml_node

An individual BGG play, usually one element of an XNL list.

player_data

The name of the xml sub-node where player data is kept. "players" by default.

game_data

The name of the xml sub-node where game data is kept. "item" by default.

Value

A data frame of gameplay statistics.


kenosborne/bgStats documentation built on Jan. 30, 2020, 12:25 a.m.