Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
still want to do the name check to be sure we parsed all the temperat…
Browse files Browse the repository at this point in the history
…ure column names correctly
  • Loading branch information
limnoliver committed Mar 30, 2022
1 parent 42086ab commit 96bc069
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions 2_nwis_pull/src/nwis_pull.R
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,11 @@ choose_temp_column_dv <- function(temp_dat) {
# ungroup() %>%
# select(-agency_cd, -count_nu)

# if (!all(names(fixed_dups) %in%
# c("site_no", "Date", "location_info", "Mean_temperature",
# "Min_temperature", "Max_temperature", "cd"))) {
# message("!!Some weird column naming convention is out-smarting your pattern matching!!")
# }
if (!all(names(dat_long) %in%
c("site_no", "Date", "location_info", "Mean_temperature",
"Min_temperature", "Max_temperature", "cd"))) {
message("!!Some weird column naming convention is out-smarting your pattern matching!!")
}
# fixed_dups <- filter(fixed_dups, !is.na(Mean_temperature)|!is.na(Min_temperature)|!is.na(Max_temperature))

return(dat_long)
Expand Down Expand Up @@ -239,11 +239,11 @@ choose_temp_column_uv <- function(temp_dat) {
# ungroup() %>%
# select(-count_nu)

# if (!all(names(fixed_dups) %in%
# c("site_no", "Date", "location_info", "Mean_temperature",
# "Min_temperature", "Max_temperature", "n_obs", "cd"))) {
# message("!!Some weird column naming convention is out-smarting your pattern matching!!")
# }
if (!all(names(dat_long) %in%
c("site_no", "Date", "location_info", "Mean_temperature",
"Min_temperature", "Max_temperature", "n_obs", "cd"))) {
message("!!Some weird column naming convention is out-smarting your pattern matching!!")
}
#
# fixed_dups <- filter(fixed_dups, !is.na(Mean_temperature)|!is.na(Min_temperature)|!is.na(Max_temperature))
return(dat_long)
Expand Down

0 comments on commit 96bc069

Please sign in to comment.