knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)

Travis-CI Build Status

About

This R data package stores 2010 Census Gazetteer Files. So far it only includes

Useful Links

Installation

# install.packages("devtools")
devtools::install_github("jjchern/gaze")

Usage

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") 


jjchern/gaze documentation built on May 19, 2019, 11:38 a.m.