Example: Table
Wikipedia List of world expositions
url <- "https://en.wikipedia.org/wiki/List_of_world_expositions"
html <- read_html(url)
html |>
html_table()
## [[1]]
## # A tibble: 37 × 7
## `#` `Name of exposition` Dates `Area (ha)` Visitors Participants Theme
## <int> <chr> <chr> <dbl> <chr> <int> <chr>
## 1 1 Great Exhibition 1 Ma… 10.4 6,039,1… 25 Indu…
## 2 2 Exposition Universelle (… 15 M… 15.2 5,162,3… 28 Agri…
## 3 3 1862 International Exhib… 1 Ma… 11 6,096,6… 39 Indu…
## 4 4 Exposition Universelle (… 1 Ap… 68.7 15,000,… 42 Agri…
## 5 5 Weltausstellung 1873 Wien 1 Ma… 233 7,255,0… 35 Cult…
## 6 6 Centennial Exposition 10 M… 115 10,000,… 35 Arts…
## 7 7 Exposition Universelle (… 20 M… 75 16,156,… 35 New …
## 8 8 Melbourne International … 1 Oc… 25 1,330,0… 33 Arts…
## 9 9 Exposición Universal de … 8 Ap… 46.5 2,300,0… 30 Fine…
## 10 10 Exposition Universelle (… 5 Ma… 96 32,250,… 35 Cele…
## # ℹ 27 more rows
##
## [[2]]
## # A tibble: 35 × 6
## `Name of exposition` Dates Area Visitors Participants Theme
## <chr> <chr> <chr> <chr> <chr> <chr>
## 1 Expo 1936 Stockholm 15 May – 1 June 1936 N/A N/A 8 Avia…
## 2 Expo 1938 Helsinki 14–22 May 1938 N/A N/A 25 Aero…
## 3 Expo 1939 Liege 20 May – 2 September … 50 N/A 8 Art …
## 4 Expo 1947 Paris 10 July – 15 August 1… 6.35 N/A 14 Urba…
## 5 Expo 1949 Stockholm 27 July – 13 August 1… N/A N/A 14 Spor…
## 6 Expo 1949 Lyon 24 September – 9 Octo… 110 N/A N/A Rura…
## 7 Expo 1951 Lille 28 April – 20 May 1951 15 1,500,0… 24 Text…
## 8 Expo 1953 Rome 26 July – 31 October … 12 1,700,0… N/A Agri…
## 9 Expo 1953 Jerusalem 22 September – 14 Oct… 4.60 600,000 13 Conq…
## 10 Expo 1954 Naples 15 May – 15 October 1… 100 N/A 25 Navi…
## # ℹ 25 more rows
##
## [[3]]
## # A tibble: 25 × 6
## `Name of exposition` Dates Area Visitors Participants Theme
## <chr> <chr> <int> <chr> <chr> <chr>
## 1 Expo 1960 Rotterdam 25 March – 25 Septemb… 50 4,000,0… N/A Inte…
## 2 Expo 1963 Hamburg 26 April – 13 October… 76 5,400,0… 35 Hort…
## 3 Expo 1964 Vienna 16 April – 11 October… 100 2,100,0… 28 Inte…
## 4 Expo 1969 Paris 23 April – 5 October … 28 2,400,0… 17 Flow…
## 5 Expo 1972 Amsterdam 26 March – 1 October … 75 4,300,0… N/A Effo…
## 6 Expo 1973 Hamburg 27 April – 7 October … 76 5,800,0… 50 Inte…
## 7 Expo 1974 Vienna 18 April – 14 October… 100 2,600,0… 30 Inte…
## 8 Expo 1980 Montreal 17 May – 1 September … 40 N/A 23 Rela…
## 9 Expo 1982 Amsterdam 8 April – 10 October … 50 4,600,0… 17 Inte…
## 10 Expo 1983 Munich 28 April – 9 October … 72 11,600,… 23 Inte…
## # ℹ 15 more rows
##
## [[4]]
## # A tibble: 6 × 2
## .mw-parser-output .navbar{display:inline;font-size:88…¹ .mw-parser-output .n…²
## <chr> <chr>
## 1 Types "Amusement park\nAnim…
## 2 Terminology "Exclusive ride time …
## 3 Related articles "Amusement park accid…
## 4 Amusement park lists "Amusement parks\nAmu…
## 5 Related lists "Amusement rides\nTou…
## 6 Category "Category"
## # ℹ abbreviated names:
## # ¹`.mw-parser-output .navbar{display:inline;font-size:88%;font-weight:normal}.mw-parser-output .navbar-collapse{float:left;text-align:left}.mw-parser-output .navbar-boxtext{word-spacing:0}.mw-parser-output .navbar ul{display:inline-block;white-space:nowrap;line-height:inherit}.mw-parser-output .navbar-brackets::before{margin-right:-0.125em;content:"[ "}.mw-parser-output .navbar-brackets::after{margin-left:-0.125em;content:" ]"}.mw-parser-output .navbar li{word-spacing:-0.125em}.mw-parser-output .navbar a>span,.mw-parser-output .navbar a>abbr{text-decoration:inherit}.mw-parser-output .navbar-mini abbr{font-variant:small-caps;border-bottom:none;text-decoration:none;cursor:inherit}.mw-parser-output .navbar-ct-full{font-size:114%;margin:0 7em}.mw-parser-output .navbar-ct-mini{font-size:114%;margin:0 4em}html.skin-theme-clientpref-night .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}@media(prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}}@media print{.mw-parser-output .navbar{display:none!important}}vteAmusement parks`,
## # ²`.mw-parser-output .navbar{display:inline;font-size:88%;font-weight:normal}.mw-parser-output .navbar-collapse{float:left;text-align:left}.mw-parser-output .navbar-boxtext{word-spacing:0}.mw-parser-output .navbar ul{display:inline-block;white-space:nowrap;line-height:inherit}.mw-parser-output .navbar-brackets::before{margin-right:-0.125em;content:"[ "}.mw-parser-output .navbar-brackets::after{margin-left:-0.125em;content:" ]"}.mw-parser-output .navbar li{word-spacing:-0.125em}.mw-parser-output .navbar a>span,.mw-parser-output .navbar a>abbr{text-decoration:inherit}.mw-parser-output .navbar-mini abbr{font-variant:small-caps;border-bottom:none;text-decoration:none;cursor:inherit}.mw-parser-output .navbar-ct-full{font-size:114%;margin:0 7em}.mw-parser-output .navbar-ct-mini{font-size:114%;margin:0 4em}html.skin-theme-clientpref-night .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}@media(prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}}@media print{.mw-parser-output .navbar{display:none!important}}vteAmusement parks`
##
## [[5]]
## # A tibble: 15 × 18
## vteParties and festiva…¹ vteParties and festi…² `` `` `` `` ``
## <chr> <chr> <chr> <chr> <chr> <chr> <chr>
## 1 "Sorted by occasions, p… "Sorted by occasions,… <NA> <NA> <NA> <NA> <NA>
## 2 "Types" "Wedding-related\nBac… Wedd… "Bac… "Ban… "Eid… "Hou…
## 3 "Wedding-related" "Bachelor party\nBach… <NA> <NA> <NA> <NA> <NA>
## 4 "Banquets" "Eid cuisine\nState b… <NA> <NA> <NA> <NA> <NA>
## 5 "House parties" "Family reunion\nCock… <NA> <NA> <NA> <NA> <NA>
## 6 "Public parties" "Festivals\nHolidays\… Fest… "Hol… "Fai… "Wor… "Pic…
## 7 "Festivals" "Holidays\nSpring bre… <NA> <NA> <NA> <NA> <NA>
## 8 "Fairs" "World's fair\nState … <NA> <NA> <NA> <NA> <NA>
## 9 "Picnic\nBlock party\nS… "Picnic\nBlock party\… <NA> <NA> <NA> <NA> <NA>
## 10 "Anniversary\nJubilee\n… "Anniversary\nJubilee… <NA> <NA> <NA> <NA> <NA>
## 11 "Clothing" "Western dress codes\… West… "For… "Wed… "Wed… <NA>
## 12 "Western dress codes" "Formal\nWhite tie\nM… <NA> <NA> <NA> <NA> <NA>
## 13 "Wedding dress\nContemp… "Wedding dress\nConte… <NA> <NA> <NA> <NA> <NA>
## 14 "Equipment" "Balloon\nBalloon mod… <NA> <NA> <NA> <NA> <NA>
## 15 "Society portal\n Media… "Society portal\n Med… <NA> <NA> <NA> <NA> <NA>
## # ℹ abbreviated names: ¹`vteParties and festivals`, ²`vteParties and festivals`
## # ℹ 11 more variables: `` <chr>, `` <chr>, `` <chr>, `` <chr>, `` <chr>,
## # `` <chr>, `` <chr>, `` <chr>, `` <chr>, `` <chr>, `` <chr>
##
## [[6]]
## # A tibble: 8 × 8
## X1 X2 X3 X4 X5 X6 X7 X8
## <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr>
## 1 "Wedding-related" "Bac… <NA> <NA> <NA> <NA> <NA> <NA>
## 2 "Banquets" "Eid… <NA> <NA> <NA> <NA> <NA> <NA>
## 3 "House parties" "Fam… <NA> <NA> <NA> <NA> <NA> <NA>
## 4 "Public parties" "Fes… Fest… "Hol… Fairs "Wor… "Pic… "Pic…
## 5 "Festivals" "Hol… <NA> <NA> <NA> <NA> <NA> <NA>
## 6 "Fairs" "Wor… <NA> <NA> <NA> <NA> <NA> <NA>
## 7 "Picnic\nBlock party\nSubway party\… "Pic… <NA> <NA> <NA> <NA> <NA> <NA>
## 8 "Anniversary\nJubilee\nCeremony\nCh… "Ann… <NA> <NA> <NA> <NA> <NA> <NA>
##
## [[7]]
## # A tibble: 3 × 2
## X1 X2
## <chr> <chr>
## 1 "Festivals" "Holidays\nSpring break\n…
## 2 "Fairs" "World's fair\nState fair…
## 3 "Picnic\nBlock party\nSubway party\nTailgate party" "Picnic\nBlock party\nSub…
##
## [[8]]
## # A tibble: 2 × 2
## X1 X2
## <chr> <chr>
## 1 "Western dress codes" "For…
## 2 "Wedding dress\nContemporary\nBridal crown\nDress\nEvening gown\nBall g… "Wed…
##
## [[9]]
## # A tibble: 2 × 2
## `Authority control databases` `Authority control databases`
## <chr> <chr>
## 1 National GermanyJapanCzech Republic
## 2 Other Historical Dictionary of Switzerland