Skip to content

Commit

Permalink
minor segregation metrics bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wcurrangroome committed Sep 24, 2024
1 parent f6f9500 commit ed072d1
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions R/calculate_segregation_metrics.R
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ calculate_segregation_metrics = function(data, data_format, nesting_geography_ge
unit = "GEOID",
weight = "estimate",
wide = T) %>%
dplyr::as_tibble() %>%
dplyr::select(GEOID, segregation_small_geography = ls, p_small_geography = p))
dplyr::as_tibble()) %>%
dplyr::select(GEOID, segregation_small_geography = ls, p_small_geography = p)

small_segregation_results = data %>%
dplyr::select(GEOID) %>%
Expand Down
4 changes: 0 additions & 4 deletions R/compile_acs_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -415,10 +415,6 @@ geographies over time should be thoroughly quality checked.\n")

states = county_codes$state %>% unique

# county_codes %>% View()
#
# browser()

suppressMessages({ suppressWarnings({
## some geographies are not available by state and can only be returned nationally
if (geography %in% super_state_geographies) {
Expand Down
Binary file modified inst/test-data/codebook_2024-08-24.rds
Binary file not shown.
Binary file modified inst/test-data/test_data_2024-08-24.rds
Binary file not shown.

0 comments on commit ed072d1

Please sign in to comment.