Skip to content

Commit

Permalink
de-duplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
Damonamajor committed Jan 15, 2025
1 parent e090334 commit f4d9db7
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,14 @@ land_nbhd_rate_2025 <- openxlsx::read.xlsx(tmp_file_nbhd_rate_2025) %>%
names_to = "year", values_to = "land_rate_per_sqft"
) %>%
mutate(across(c(township_code:town_nbhd, year), as.character)) %>%
# Value for NBHD 35100 is ALL EX in 2022
# Re-codes to NA with warning
mutate(land_rate_per_sqft = as.numeric(land_rate_per_sqft)) %>%
expand_grid(class) %>%
# 2025 contains bifurcated neighborhood land rates across class
filter(
!(classes == "all other regression classes" & class %in% c("210", "295")),
!(classes == "2-10s/2-95s" & !(class %in% c("210", "295")))
!(classes == "All Other Res. " & class %in% c("210", "295")),
!(classes == "2-10/2-95 Rate" & !(class %in% c("210", "295")))
) %>%
select(-classes)

Expand Down

0 comments on commit f4d9db7

Please sign in to comment.