Skip to content

Commit

Permalink
minor change, date v. datetime variables
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylweiss committed Jul 1, 2024
1 parent 224eebd commit 4dffff9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/az_lwdaily.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#' may take considerable time.
#' @return a tibble. For units and other metadata, see
#' <https://azmet.arizona.edu/about>
#' @seealso [az_15min()], [az_daily()], [az_hourly()], [az_heat()], [az_lw15min()]
#' @seealso [az_15min()], [az_daily()], [az_heat()], [az_hourly()], [az_lw15min()]
#' @source <https://azmet.arizona.edu/>
#'
#' @importFrom rlang .data
Expand Down Expand Up @@ -137,7 +137,7 @@ az_lwdaily <- function(station_id = NULL, start_date = NULL, end_date = NULL) {
)
)

if (length(unique(out$datetime)) == 1) {
if (length(unique(out$date)) == 1) {
message("Returning data from ", unique(out$date))
} else {
message("Returning data from ", min(out$date), " through ", max(out$date))
Expand Down

0 comments on commit 4dffff9

Please sign in to comment.