Skip to content

Commit

Permalink
Update community_climate_vulnerability with most recent data file
Browse files Browse the repository at this point in the history
  • Loading branch information
BBeltz1 committed Nov 18, 2024
1 parent 0e368f0 commit 59d0990
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file added data-raw/NE_CCCVI_00_22.xlsx
Binary file not shown.
4 changes: 2 additions & 2 deletions data-raw/get_community_climate_vulnerability.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ library(tidyr)
raw.dir <- here::here("data-raw")

# Define input files
comm_clim_vuln_xlsx <- "CCCVI_NE - Tarsila Seara - NOAA Federal.xlsx"
comm_clim_vuln_xlsx <- "NE_CCCVI_00_22.xlsx"

get_community_climate_vulnerability <- function(save_clean = F){
# Create data frame to define State-EPU
df<- data.frame(State = c("ME", "MA", "RI", "CT", "DE", "NH", "NY", "NJ", "MD", "VA", "NC"),
EPU = c("NE", "NE", "NE", "NE", "NE", "NE","MAB","MAB","MAB","MAB","MAB"))

community_climate_vulnerability <- readxl::read_excel(file.path(raw.dir,comm_clim_vuln_xlsx),
sheet = "CCCVI_NE_clean") |>
sheet = "NE_CCCVI_Final00_22") |>
tidyr::pivot_longer(cols = c("class_lbs_percent",
"class_val_percent",
"oaSum",
Expand Down
Binary file modified data/community_climate_vulnerability.rda
Binary file not shown.

0 comments on commit 59d0990

Please sign in to comment.