# NOT RUN {
# read summary data using areas of selected cities
aaa <- read_acs1year(
year = 2016,
states = c("UT", "RI"),
table_contents = c("male = B01001_002", "female = B01001_026"),
areas = c("Salt Lake City city, UT",
"Providence city, RI",
"PLACE = RI19180"),
summary_level = "place",
with_margin = TRUE
)
# read data using geoheaders - all major counties
bbb <- read_acs1year(
year = 2015,
states = c("UT", "RI"),
table_contents = c("male = B01001_002", "female = B01001_026"),
geo_headers = c("COUNTY"),
summary_level = "county",
with_margin = TRUE
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab