Skip to content

Commit

Permalink
actually show full readme example output done now
Browse files Browse the repository at this point in the history
  • Loading branch information
hrecht committed Mar 26, 2024
1 parent d0badb5 commit 401d5ec
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 19 deletions.
22 changes: 12 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,22 +143,24 @@ sahie_la
# Get the 2021 uninsured rate for nonelderly adults (AGECAT = 1)
# at 138% to 400% of the federal poverty line (IPRCAT = 5)
# by race and ethnicity for Alabama
sahie_adults <- getCensus(
sahie_alabama <- getCensus(
name = "timeseries/healthins/sahie",
vars = c("NAME", "PCTUI_PT", "RACECAT", "RACE_DESC"),
region = "state:*",
time = 2021,
IPRCAT = 5,
AGECAT = 1)
head(sahie_adults)

#> time state NAME PCTUI_PT RACECAT RACE_DESC IPRCAT AGECAT
#> 1 2021 01 Alabama 15.9 0 All Races 5 1
#> 2 2021 01 Alabama 14.1 1 White alone, not Hispanic or Latino 5 1
#> 3 2021 01 Alabama 15.4 2 Black or African American alone, not Hispanic or Latino 5 1
#> 4 2021 01 Alabama 40.4 3 Hispanic or Latino (any race) 5 1
#> 5 2021 01 Alabama 20.8 4 American Indian and Alaska Native alone, not Hispanic or Latino 5 1
#> 6 2021 01 Alabama 14.8 5 Asian alone, not Hispanic or Latino 5 1
sahie_alabama

#> time state NAME PCTUI_PT RACECAT RACE_DESC IPRCAT AGECAT
#> 1 2021 01 Alabama 15.9 0 All Races 5 1
#> 2 2021 01 Alabama 14.1 1 White alone, not Hispanic or Latino 5 1
#> 3 2021 01 Alabama 15.4 2 Black or African American alone, not Hispanic or Latino 5 1
#> 4 2021 01 Alabama 40.4 3 Hispanic or Latino (any race) 5 1
#> 5 2021 01 Alabama 20.8 4 American Indian and Alaska Native alone, not Hispanic or Latino 5 1
#> 6 2021 01 Alabama 14.8 5 Asian alone, not Hispanic or Latino 5 1
#> 7 2021 01 Alabama 20.0 6 Native Hawaiian and Other Pacific Islander alone, not Hispanic or Latino 5 1
#> 8 2021 01 Alabama 16.9 7 Two or More Races, not Hispanic or Latino 5 1

```

Expand Down
20 changes: 11 additions & 9 deletions docs/index.html

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

0 comments on commit 401d5ec

Please sign in to comment.