Skip to content

Commit cbcfc6e

Browse files
committed
prepping for cran
1 parent 74334d4 commit cbcfc6e

File tree

243 files changed

+14798
-1776
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

243 files changed

+14798
-1776
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: censusapi
2-
Version: 0.9.0.9000
2+
Version: 0.9.0
33
Title: Retrieve Data from the Census APIs
44
Authors@R: person("Hannah", "Recht", email = "censusapi.rstats@gmail.com", role = c("aut", "cre"))
55
Description: A wrapper for the U.S. Census Bureau APIs that returns data frames of

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# censusapi 0.9.0 (development verison)
1+
# censusapi 0.9.0
22
## Breaking changes
33
* Increases required version of R from >=3.0 to >=3.5 (released in 2018) based on httr dependency.
44

README.md

Lines changed: 46 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ poverty_rate
5151
#> 11 2020 06 037 Los Angeles County 13.2
5252
#> 12 2021 06 037 Los Angeles County 14.1
5353
#> 13 2022 06 037 Los Angeles County 13.9
54+
#> 14 2023 06 037 Los Angeles County 13.7
5455

5556
```
5657

@@ -63,22 +64,21 @@ Using the 2022 [5-year American Community Survey](https://www.census.gov/data/de
6364

6465
```R
6566
no_internet <- getCensus(
66-
name = "acs/acs5/subject",
67-
vintage = 2022,
68-
vars = c("S2801_C01_001E", "S2801_C01_019E", "S2801_C02_019E", "NAME"),
69-
region = "tract:*",
70-
regionin = "state:04")
71-
67+
name = "acs/acs5/subject",
68+
vintage = 2023,
69+
vars = c("S2801_C01_001E", "S2801_C01_019E", "S2801_C02_019E"),
70+
region = "tract:*",
71+
regionin = "state:04")
72+
7273
head(no_internet)
7374

74-
#> state county tract S2801_C01_001E S2801_C01_019E S2801_C02_019E NAME
75-
#> 1 04 001 942600 429 412 96.0 Census Tract 9426; Apache County; Arizona
76-
#> 2 04 001 942700 1439 1006 69.9 Census Tract 9427; Apache County; Arizona
77-
#> 3 04 001 944000 1556 903 58.0 Census Tract 9440; Apache County; Arizona
78-
#> 4 04 001 944100 1446 966 66.8 Census Tract 9441; Apache County; Arizona
79-
#> 5 04 001 944201 1154 835 72.4 Census Tract 9442.01; Apache County; Arizona
80-
#> 6 04 001 944202 1111 874 78.7 Census Tract 9442.02; Apache County; Arizona
81-
75+
#> state county tract S2801_C01_001E S2801_C01_019E S2801_C02_019E
76+
#> 1 04 001 942600 441 415 94.1
77+
#> 2 04 001 942700 1480 989 66.8
78+
#> 3 04 001 944000 1565 822 52.5
79+
#> 4 04 001 944100 1488 887 59.6
80+
#> 5 04 001 944201 1165 663 56.9
81+
#> 6 04 001 944202 1149 746 64.9
8282
```
8383

8484
## Advanced usage
@@ -119,48 +119,49 @@ listCensusMetadata(
119119
# at 138% to 400% of the federal poverty line (IPRCAT = 5)
120120
# in Los Angeles County, California
121121
sahie_la <- getCensus(
122-
name = "timeseries/healthins/sahie",
123-
vars = c("NAME", "PCTUI_PT"),
124-
region = "county:037",
125-
regionin = "state:06",
126-
time = "from 2012",
127-
IPRCAT = 5,
128-
AGECAT = 1)
122+
name = "timeseries/healthins/sahie",
123+
vars = c("NAME", "PCTUI_PT"),
124+
region = "county:037",
125+
regionin = "state:06",
126+
time = "from 2012",
127+
IPRCAT = 5,
128+
AGECAT = 1)
129129
sahie_la
130130

131-
#> time state county NAME PCTUI_PT IPRCAT AGECAT
132-
#> 1 2012 06 037 Los Angeles County, CA 35.5 5 1
133-
#> 2 2013 06 037 Los Angeles County, CA 34.3 5 1
134-
#> 3 2014 06 037 Los Angeles County, CA 25.0 5 1
135-
#> 4 2015 06 037 Los Angeles County, CA 18.6 5 1
136-
#> 5 2016 06 037 Los Angeles County, CA 16.3 5 1
137-
#> 6 2017 06 037 Los Angeles County, CA 15.5 5 1
138-
#> 7 2018 06 037 Los Angeles County, CA 16.2 5 1
139-
#> 8 2019 06 037 Los Angeles County, CA 18.3 5 1
140-
#> 9 2020 06 037 Los Angeles County, CA 16.7 5 1
141-
#> 10 2021 06 037 Los Angeles County, CA 16.1 5 1
142-
143-
# Get the 2021 uninsured rate for nonelderly adults (AGECAT = 1)
131+
#> time state county NAME PCTUI_PT IPRCAT AGECAT
132+
#> 1 2012 06 037 Los Angeles County, CA 35.5 5 1
133+
#> 2 2013 06 037 Los Angeles County, CA 34.3 5 1
134+
#> 3 2014 06 037 Los Angeles County, CA 25.0 5 1
135+
#> 4 2015 06 037 Los Angeles County, CA 18.6 5 1
136+
#> 5 2016 06 037 Los Angeles County, CA 16.3 5 1
137+
#> 6 2017 06 037 Los Angeles County, CA 15.5 5 1
138+
#> 7 2018 06 037 Los Angeles County, CA 16.2 5 1
139+
#> 8 2019 06 037 Los Angeles County, CA 18.3 5 1
140+
#> 9 2020 06 037 Los Angeles County, CA 16.7 5 1
141+
#> 10 2021 06 037 Los Angeles County, CA 16.1 5 1
142+
#> 11 2022 06 037 Los Angeles County, CA 15.2 5 1
143+
144+
# Get the uninsured rate for nonelderly adults (AGECAT = 1)
144145
# at 138% to 400% of the federal poverty line (IPRCAT = 5)
145146
# by race and ethnicity for Alabama
146147
sahie_alabama <- getCensus(
147148
name = "timeseries/healthins/sahie",
148149
vars = c("NAME", "PCTUI_PT", "RACECAT", "RACE_DESC"),
149-
region = "state:*",
150-
time = 2021,
150+
region = "state:01",
151+
time = 2022,
151152
IPRCAT = 5,
152153
AGECAT = 1)
153154
sahie_alabama
154155

155-
#> time state NAME PCTUI_PT RACECAT RACE_DESC IPRCAT AGECAT
156-
#> 1 2021 01 Alabama 15.9 0 All Races 5 1
157-
#> 2 2021 01 Alabama 14.1 1 White alone, not Hispanic or Latino 5 1
158-
#> 3 2021 01 Alabama 15.4 2 Black or African American alone, not Hispanic or Latino 5 1
159-
#> 4 2021 01 Alabama 40.4 3 Hispanic or Latino (any race) 5 1
160-
#> 5 2021 01 Alabama 20.8 4 American Indian and Alaska Native alone, not Hispanic or Latino 5 1
161-
#> 6 2021 01 Alabama 14.8 5 Asian alone, not Hispanic or Latino 5 1
162-
#> 7 2021 01 Alabama 20.0 6 Native Hawaiian and Other Pacific Islander alone, not Hispanic or Latino 5 1
163-
#> 8 2021 01 Alabama 16.9 7 Two or More Races, not Hispanic or Latino 5 1
156+
#> time state NAME PCTUI_PT RACECAT RACE_DESC IPRCAT AGECAT
157+
#> 1 2022 01 Alabama 14.7 0 All Races 5 1
158+
#> 2 2022 01 Alabama 12.5 1 White alone, not Hispanic or Latino 5 1
159+
#> 3 2022 01 Alabama 15.2 2 Black or African American alone, not Hispanic or Latino 5 1
160+
#> 4 2022 01 Alabama 37.7 3 Hispanic or Latino (any race) 5 1
161+
#> 5 2022 01 Alabama 21.2 4 American Indian and Alaska Native alone, not Hispanic or Latino 5 1
162+
#> 6 2022 01 Alabama 14.5 5 Asian alone, not Hispanic or Latino 5 1
163+
#> 7 2022 01 Alabama 23.8 6 Native Hawaiian and Other Pacific Islander alone, not Hispanic or Latino 5 1
164+
#> 8 2022 01 Alabama 16.1 7 Two or More Races, not Hispanic or Latino 5 1
164165

165166
```
166167

docs/404.html

Lines changed: 31 additions & 48 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)