library(tidyverse)
<- "/home/ajackson/Dropbox/Rprojects/Curated_Data_Files/SeaLevel/"
savepath <- "/home/ajackson/Dropbox/projects/CeationCareTaskforce/sealevel/"
path
::opts_chunk$set(echo = TRUE) knitr
Read Data from Union of Concerned Scientists for Sea-level Rise
Mapping
Sea Level
Data
Excel spreadsheet for chronically inundated properties by zipcode, climate scenario, and year.
Data comes from:
https://www.ucsusa.org/resources/underwater
<- readxl::excel_sheets(paste0(path, "underwater-data-by-zip-code.xlsx"))
sheets
# Read in all but first sheet (that is just documentation)
<- sheets[2:12] %>%
df set_names() %>%
map_df(~ readxl::read_excel(path = paste0(path, "underwater-data-by-zip-code.xlsx"),
sheet = .x,
skip=3),
.id = "sheet")
saveRDS(df, paste0(savepath, "UCS_spreadsheet.rds"))