View source: R/readHTMLTable.R
readHTMLTable | R Documentation |
Read data from one or more HTML tables
readHTMLTable(url, which, ...)
url |
|
which |
An integer to choose which table to return. If not specified, return a list of tables. |
... |
see |
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.