Skip to content

Instantly share code, notes, and snippets.

@benjamin-chan
Last active August 29, 2015 14:08
Show Gist options
  • Save benjamin-chan/d7ad7cd79a3d40b1ed4f to your computer and use it in GitHub Desktop.
Save benjamin-chan/d7ad7cd79a3d40b1ed4f to your computer and use it in GitHub Desktop.
Oregon Office of Rural Health urban/rural designation
url <- "http://www.ohsu.edu/xd/outreach/oregon-rural-health/data/rural-definitions/upload/OR-Zip-Codes-Urban-Rural-Designations.xlsx"
f <- tempfile()
download.file(url, f, mode="wb")
if (!require(xlsx)) {
repos <- "http://cran.us.r-project.org"
install.packages("xlsx", dependencies=TRUE, repos=repos)
rm(repos)
}
require(xlsx)
ruca <- read.xlsx(f, 1)
str(ruca)
head(ruca)
table(ruca$Desig)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment