Skip to content

Commit

Permalink
bug fix relating to geometry column carried through to codebook calcu…
Browse files Browse the repository at this point in the history
…lations
  • Loading branch information
wcurrangroome committed Nov 11, 2024
1 parent 7618e20 commit 6a719da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion R/compile_acs_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,6 @@ geographies over time should be thoroughly quality checked.\n")
survey = "acs5",
output = "wide") %>%
dplyr::mutate(data_source_year = .x))})}

moes = df_raw_estimates %>% dplyr::select(GEOID, data_source_year, dplyr::matches("_M$"))
})})

Expand Down
4 changes: 2 additions & 2 deletions R/generate_codebook.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
#' @importFrom magrittr %>%

generate_codebook = function(.data) {
# .data = data
.data = .data %>%
sf::st_drop_geometry()
####----Variable Crosswalk----####
expression_list = rlang::enexpr(list_acs_variables) %>% as.list()
list_acs_expression = expression_list[[2]][[4]][[3]]
Expand Down Expand Up @@ -455,7 +456,6 @@ generate_codebook = function(.data) {
result2 = purrr::map_dfr(
result1 %>% dplyr::filter(stringr::str_detect(definition, "calculated variable")) %>% dplyr::pull(calculated_variable),
function(variable) {
# variable = "means_transportation_work_car_truck_van_percent"
numerator_calculated_variables = result1 %>%
dplyr::filter(calculated_variable == !!variable) %>%
dplyr::pull(definition) %>%
Expand Down

0 comments on commit 6a719da

Please sign in to comment.