View source: R/read_html_tables.R
read_html_tables | R Documentation |
Function to read HTML tables from an URL.
read_html_tables(url, col_names = TRUE)
url |
A URL which contains HTML tables. |
col_names |
Do the HTML tables have column names/headers? |
Named list containing tibbles.
Stuart K. Grange
# A url
url <- "https://en.wikipedia.org/wiki/List_of_London_Underground_stations"
# A list
list_tables <- read_html_tables(url)
length(list_tables)
# Get a single data frame
data_stations <- list_tables[[1]]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.