Skip to content

Commit

Permalink
fix issue with inconsistent YRBLT values
Browse files Browse the repository at this point in the history
  • Loading branch information
walkerke committed Mar 4, 2024
1 parent f7769bb commit a61d19b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
Binary file modified .DS_Store
Binary file not shown.
12 changes: 12 additions & 0 deletions data-raw/clean_pums_data_dictionary.R
Expand Up @@ -43,6 +43,18 @@ clean_data_dict <- function(path, survey, year) {
filter(type == "VAL") %>%
select(var_code, val_min = var_label, val_max, val_label)

# Fix missing YRBLT value that pops up in 2021 and 2022, but is missing from the dict
if (year >= 2021) {
addl_yrblt <- tibble::tibble(
var_code = "YRBLT",
val_min = "1938",
val_max = "1938",
val_label = "N/A (GQ)"
)

var_value <- bind_rows(var_value, addl_yrblt)
}

pums_variables <- var_name %>%
left_join(var_value, by = "var_code") %>%
group_by(var_code) %>%
Expand Down
Binary file modified data/pums_variables.rda
Binary file not shown.
2 changes: 1 addition & 1 deletion man/pums_variables.Rd

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

0 comments on commit a61d19b

Please sign in to comment.