Skip to content

Commit

Permalink
fix column naming for 2000 blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherkenny committed Aug 15, 2023
1 parent ec4b8c7 commit 53a45a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@

# censable 0.0.5

* Resolves an issue where block-level requests with geometry would fail for 2000 data.

# censable 0.0.4

* Internal changes to `build_dec()` and `build_acs()` to make variable fetching cleaner.
* Adds new `groups` to `build_dec()` for 7 category races with no Hispanic category: `'all7'`, `'pop7'`, and `'vap7'`.
* Allows any part race from `build_dec()` with `'ap:race'` for all race categories.
Expand Down
1 change: 1 addition & 0 deletions R/api.R
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ get_geometry <- function(geography, ...) {
do.call(fn, args) %>%
dplyr::rename_with(.fn = function(x) stringr::str_sub(x, end = -3),
.cols = dplyr::any_of(c('GEOID20', 'GEOID10', 'GEOID00'))) %>%
dplyr::rename_with(.fn = function(x) stringr::str_replace(x, 'BLKIDFP00', 'GEOID')) %>%
dplyr::select(.data$GEOID, .data$geometry)

}
Expand Down

0 comments on commit 53a45a5

Please sign in to comment.