Skip to content

Commit

Permalink
whoops show results for 2020 decennial examples
Browse files Browse the repository at this point in the history
  • Loading branch information
hrecht committed Feb 21, 2024
1 parent 7e50744 commit c4ac250
Show file tree
Hide file tree
Showing 2 changed files with 144 additions and 39 deletions.
181 changes: 142 additions & 39 deletions docs/articles/example-list.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions vignettes/example-list.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ dec_elderly <- getCensus(
vintage = 2020,
vars = c("NAME", "DP1_0024P"),
region = "metropolitan statistical area/micropolitan statistical area:*")
head(dec_elderly)
```

Using the 2020 Demographic and Housing Characteristics File, get the total number of households ([H9_001N](https://api.census.gov/data/2020/dec/dhc/variables/H9_001N.json)) and the number of 1-person households ([H9_002N](https://api.census.gov/data/2020/dec/dhc/variables/H9_002N.json)) for counties in Maryland.
Expand All @@ -237,6 +238,7 @@ dec <- getCensus(
vars = c("NAME", "H9_001N", "H9_002N"),
region = "county:*",
regionin = "state:24")
head(dec)
```

We can use the Detailed Demographic and Housing Characteristics File A (Detailed DHC-A) to get detailed data for specific race and ethnicity groups.
Expand Down

0 comments on commit c4ac250

Please sign in to comment.