Skip to content

Commit

Permalink
Update R/az_daily.R
Browse files Browse the repository at this point in the history
Co-authored-by: Eric R. Scott <[email protected]>
  • Loading branch information
jeremylweiss and Aariq authored Aug 4, 2023
1 parent 8c49f1a commit db131a1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions R/az_daily.R
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,12 @@ az_daily <- function(station_id = NULL, start_date = NULL, end_date = NULL) {
)
) %>%
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(
wind_2min_timestamp = lubridate::with_tz(
Expand Down

0 comments on commit db131a1

Please sign in to comment.