Skip to content

Commit

Permalink
removing extra across() function
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylweiss committed Aug 4, 2023
1 parent db131a1 commit df66f73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion R/az_daily.R
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ az_daily <- function(station_id = NULL, start_date = NULL, end_date = NULL) {
NA_character_,
wind_2min_timestamp
)
)
) %>%
dplyr::mutate(
wind_2min_timestamp = lubridate::with_tz(
Expand Down
8 changes: 4 additions & 4 deletions R/az_hourly.R
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ az_hourly <- function(station_id = NULL, start_date_time = NULL, end_date_time =
dplyr::if_else(x %in% c(-999, -9999, -99999, -7999, 999, 999.9, 9999), NA_real_, x))
) %>%
dplyr::mutate(
dplyr::across(
wind_2min_timestamp,
function(x)
dplyr::if_else(x == as.character(-99999), NA_character_, x)
wind_2min_timestamp = dplyr::if_else(
wind_2min_timestamp == as.character(-99999),
NA_character_,
wind_2min_timestamp
)
) %>%
dplyr::mutate(
Expand Down

0 comments on commit df66f73

Please sign in to comment.