# NOT RUN {
# read one table and one area from one state
aaa = read_decennial(
year = 2010,
states = "UT",
table_contents = c("urban = P0020002", "rural = P0020005"),
geo_headers = "CBSA",
summary_level = "tract"
)
# read multiple table contents and areas from multiple states
bbb = read_decennial(
year = 2010,
states = c("UT", "RI"),
table_contents = c("urban = P0020002", "rural = P0020005"),
areas = c(
"place = ut62360",
"Providence city, RI",
"cousub = ri41500",
"cbsa = 39300"
),
summary_level = "block"
)
# read table contents of all county subdivisions in Providence metro
ccc <- read_decennial(
year = 2010,
states = "US",
table_contents = c("urban = P0020002", "rural = P0020005"),
geo_headers = "CBSA",
summary_level = "county subdivision",
geo_comp = "*"
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab