Skip to content

Commit

Permalink
Put WIN and WQ data together and created new .Rds file
Browse files Browse the repository at this point in the history
  • Loading branch information
gklarenberg committed Aug 20, 2024
1 parent dfe5601 commit 7194a2e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions 02_Cleaning_scripts/WQ_WIN_merge.R
Original file line number Diff line number Diff line change
Expand Up @@ -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(., "")) %>%
Expand Down
Binary file modified 03_Data_for_app/WQ_all.Rds
Binary file not shown.

0 comments on commit 7194a2e

Please sign in to comment.