knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
This R data package stores 2010 Census Gazetteer Files. So far it only includes
county10.rda
)zcta10.rda
)# install.packages("devtools") devtools::install_github("jjchern/gaze")
library(dplyr) gaze::county10 gaze::zcta10 # display variable labels gaze::county10 %>% select(usps, name, pop10, aland) %>% meda::d(compact = FALSE) %>% select(var, label) # the 10 largest counties in the United States by population based on the 2010 Census gaze::county10 %>% arrange(desc(pop10)) # the 10 largest counties in the United States by area based on the 2010 Census gaze::county10 %>% arrange(desc(aland)) # County names are not unique # See https://en.wikipedia.org/wiki/List_of_the_most_common_U.S._county_names gaze::county10 %>% filter(name == "Washington County") %>% print(n = 30) gaze::county10 %>% filter(name == "Cook County")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.