read_all_tables: read_all_tables

Description Usage Arguments Value Examples

View source: R/read_table.R

Description

read_all_tables

Usage

1
2
3
4
5
6
7
8
read_all_tables(
  url,
  remove_footnotes = TRUE,
  to_na = "",
  special_to_na = TRUE,
  replace_linebreak = ", ",
  ...
)

Arguments

url

A character vector of the url of a wikipedia page containing a table. Default is 1.

remove_footnotes

A boolean denoting whether footnote markings are to be removed or not. Default is TRUE.

to_na

A character string that when solitary in a dataframe cell is to be converted to NA. Default is ”.

special_to_na

A boolean denoting whether solitary special characters in dataframe cells are to be converted to NA. Default is TRUE.

replace_linebreak

A character string denoting what linebreaks within dataframe cells are to be replaced with. Default is ' ,'.

...

passes arguments to clean_wiki_names()

Value

A list of dataframes of all tables found in wikipedia url

Examples

1
2
3
read_all_tables('https://en.wikipedia.org/wiki/List_of_most-followed_Instagram_accounts')
read_all_tables('https://en.wikipedia.org/wiki/List_of_cryptids', remove_footnotes = FALSE)
read_all_tables('https://en.wikipedia.org/wiki/List_of_Pixar_films')

jkeast/wikitablr documentation built on March 7, 2020, 7:48 a.m.