Skip to content

Commit

Permalink
Update Utilities.R
Browse files Browse the repository at this point in the history
bug fixed - to correctly identify if no nearby sites are found
  • Loading branch information
hillarymarler committed Jan 15, 2025
1 parent a53c364 commit d9f011e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/Utilities.R
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,7 @@ TADA_FindNearbySites <- function(.data, dist_buffer = 100,
dplyr::ungroup() %>%
dplyr::filter(!is.na(NHD.nhdplusid))

if (nrow(data_unique_mls == 0)) { # #if no groups, give a TADA.NearbySiteGroup column filled with
if (nrow(data_unique_mls) == 0) { # #if no groups, give a TADA.NearbySiteGroup column filled with
# "No nearby sites"
print("TADA_FindNearbySites: No nearby sites detected using input buffer distance. Columns for TADA.NearbySitesFlag and TADA.NearbySiteGroup added for tracking purposes.")

Expand Down

0 comments on commit d9f011e

Please sign in to comment.