Skip to content

Commit

Permalink
use only magrittr pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
Aariq committed Jan 2, 2024
1 parent 91f0e20 commit 20075ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/az_hourly.R
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ az_hourly <- function(station_id = NULL, start_date_time = NULL, end_date_time =
# If most recent hour is queried, make sure only one hour is returned
if (is.null(start_date_time) & is.null(end_date_time)) {
out <-
out |>
out %>%
dplyr::filter(.data$date_datetime == max(.data$date_datetime), .by = "meta_station_id")
}

Expand Down

0 comments on commit 20075ba

Please sign in to comment.