Learn R Programming

tableParser (version 1.0.2)

get.HTML.tables: get.HTML.tables

Description

Extracts HTML tables as a vector of HTML-coded tables from plain HTML code, HTML, HML, or XML files. If tables are nested within tables, only the inner tables are extracted.

Usage

get.HTML.tables(x)

Value

Character vector with one HTML-encoded table per cell.

Arguments

x

HTML, HML, or XML file; or character object with HTML-encoded content.

Examples

Run this code
x<-readLines("https://en.wikipedia.org/wiki/R_(programming_language)",warn=FALSE)
get.HTML.tables(x)

Run the code above in your browser using DataLab