diff --git a/02_Cleaning_scripts/WQ_WIN_merge.R b/02_Cleaning_scripts/WQ_WIN_merge.R index 63325bd..9738bb5 100644 --- a/02_Cleaning_scripts/WQ_WIN_merge.R +++ b/02_Cleaning_scripts/WQ_WIN_merge.R @@ -32,6 +32,12 @@ for (i in 1:nrow(WQ_GTMNERR)){ # Check there are no duplicates sum(duplicated(WQ_GTMNERR$UNID)) +# Add a geometry column, to later use for clicking markers (we might change this) +WQ_GTMNERR <- st_as_sf(WQ_GTMNERR, coords = c("Longitude", "Latitude"), + crs = 4326, remove = FALSE) +# Turn back into dataframe with geometry as a column +WQ_GTMNERR <- as.data.frame(WQ_GTMNERR) + WQ_GTMNERR_long <- WQ_GTMNERR %>% mutate(across(everything(), as.character)) %>% mutate_all(~ na_if(., "")) %>% diff --git a/03_Data_for_app/WQ_all.Rds b/03_Data_for_app/WQ_all.Rds index ca2eb66..dc4b1c9 100644 Binary files a/03_Data_for_app/WQ_all.Rds and b/03_Data_for_app/WQ_all.Rds differ