readHTMLTable: Read data from one or more HTML tables

View source: R/readHTMLTable.R

readHTMLTableR Documentation

Read data from one or more HTML tables

Description

Read data from one or more HTML tables

Usage

readHTMLTable(url, which, ...)

Arguments

url
which

An integer to choose which table to return. If not specified, return a list of tables.

...

see rvest::html_table()

Examples

# Get a list of Tables
url <- "https://www.inflationdata.com/Inflation/Consumer_Price_Index/HistoricalCPI.aspx"
readHTMLTable(url)

# Read the 1st Table
url <- "https://www.inflationdata.com/Inflation/Consumer_Price_Index/HistoricalCPI.aspx"
readHTMLTable(url, which = 1)


mobilizingcs/mobilizr documentation built on Feb. 17, 2024, 7:49 p.m.