Code
data <- "https://walkerke.github.io/tidycensus/articles/basic-usage.html" %>%
read_html %>%
html_table(header = TRUE, fill = TRUE)
data[[1]] %>%
as.tibble %>%
{if (is_html_output()) datatable(., filter = 'top', rownames = F) else .}Data - U.S.
When working with U.S. Regional data, geographies can be confusing. For instance, the below list of all Census geographies is given below, from this website.
data <- "https://walkerke.github.io/tidycensus/articles/basic-usage.html" %>%
read_html %>%
html_table(header = TRUE, fill = TRUE)
data[[1]] %>%
as.tibble %>%
{if (is_html_output()) datatable(., filter = 'top', rownames = F) else .}(ref:wikipedia-CBSA) Map of CBSAs (Source: Wikipedia). Click here to enlarge.
include_graphics2("https://upload.wikimedia.org/wikipedia/commons/thumb/1/16/Metropolitan_and_Micropolitan_Statistical_Areas_%28CBSAs%29_of_the_United_States_and_Puerto_Rico%2C_Feb_2013.gif/1920px-Metropolitan_and_Micropolitan_Statistical_Areas_%28CBSAs%29_of_the_United_States_and_Puerto_Rico%2C_Feb_2013.gif")
(ref:wikipedia-counties) Map of Counties (Source: Wikipedia). Click here to enlarge.
include_graphics2("https://upload.wikimedia.org/wikipedia/commons/f/f6/Map_of_USA_with_county_outlines.png")