Learn R Programming

hoopR (version 3.1.0)

.realgm_tables: Internal: extract every parseable HTML table from a RealGM document

Description

RealGM pages usually carry a small nav / filter / legend table ahead of the real data table. This returns all tables that parse and clear min_rows, janitor::clean_names()-ed, so a caller can pick or combine them.

Usage

.realgm_tables(doc, min_rows = 1)

Value

A list of cleaned data.frames.

Arguments

doc

An xml_document from .realgm_doc().

min_rows

Minimum row count for a table to be kept (drops nav/legend).