wiki_table_format: Parse the format of an HTML table.

Description Usage Arguments Value Examples

View source: R/parse_table.R

Description

A function to parse an HTML table's format.

Usage

1
wiki_table_format(table, skip = "auto", header_length = "auto")

Arguments

table

An HTML table object.

skip

The number of rows to skip before collecting data. This is useful for omitting full-width "title" cells. Takes an integery and defaults to 0.

header_length

Set to a number greater than one to deal with multi-row headers. Takes an integer and defaults to 1.

Value

Returns a list object that contains information about the format of table.

Examples

1
2
wiki_table("https://wikipedia.org/wiki/List_of_metro_systems")
wiki_table("List_of_metro_systems")

niedermansam/wikiScraper documentation built on Nov. 4, 2019, 10:06 p.m.