Learn R Programming

filibustr (version 0.5.1)

read_html_table: Scrape an online HTML table

Description

read_html_table() returns an HTML table at a specified URL and CSS element as a dataframe.

Usage

read_html_table(url, css)

Value

A tibble.

Arguments

url

A string giving the URL to read from.

css

A string giving the CSS element to select.

SelectorGadget (https://selectorgadget.com/) is a useful tool for finding the code for the CSS element you need. See rvest::html_element() for more information.