Description Usage Arguments Value Examples
A function to extract data from the "infocards" some Wikipedia pages provide.
1 |
format |
Either 'long' or 'wide'. 'long' returns an output with two columns (header and data), 'wide' returns an output with a column for each data entry. |
delay |
Rate at which to throttle calls. There is no delay if the function is passed an HTML object (e.g. from wiki_page). Defaults to 1, can be turned off by setting to 0. Time between calls is determined by multiplying the value of this parameter with the response time by the server. |
html |
Either a url to a wikipediea page, or an object that contains the body of a wikipedia page (e.g. from ws_scrape_page). |
Returns a data_frame (tibble) that contains the data from a table with the class "infobox".
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.