Last active
August 29, 2015 14:08
-
-
Save benjamin-chan/d7ad7cd79a3d40b1ed4f to your computer and use it in GitHub Desktop.
Oregon Office of Rural Health urban/rural designation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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