Skip to content

Commit

Permalink
resolving duplicate site_tp col from joining. Address final comment o…
Browse files Browse the repository at this point in the history
…f cee review in USGS-VIZLAB#58
  • Loading branch information
msleckman committed Jan 4, 2023
1 parent 73a55eb commit f125ce1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions 2_process_site_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,9 @@ p2_site_targets_list <- list(
p2_nwis_meas_gw_data,
join_site_spatial_info(nwis_data = p1_nwis_meas_gw_data,
sites_sf = p2_site_in_watersheds_sf,
join_site_col = 'site_no') %>%
## both dfs have a site_tp_cd col so when joining, two versions are created. Resetti
mutate(site_tp_cd = site_tp_cd.y) %>%
select(!contains(c('.x','.y'))) %>%
join_site_col = c('site_no', 'site_tp_cd')
) %>%
## re-organizing cols so that lat lon cols come after other cols
select(!c('lat','lon'), c('lat','lon'))
)
)
Expand Down

0 comments on commit f125ce1

Please sign in to comment.