Skip to content

Commit

Permalink
minor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyclements committed Feb 9, 2024
1 parent 142d4b4 commit eaf8a8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/seasonal_rain.R
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ seasonal_rain <- function (summary_data = NULL, start_date = NULL, end_date = NU
stop("No summaries selected. At least one of\n 'total_rain' or 'n_rain' must be TRUE.")
}

if(!is.null(s_start_doy) || any(grepl("-", summary_data[[year]]))){
if(!is.null(s_start_doy)){ # any(grepl("-", summary_data[[year]]))){
data <- shift_dates(data = data, date = "date", s_start_doy = s_start_doy - 1)
year <- "year"
doy <- "doy"
Expand Down

0 comments on commit eaf8a8b

Please sign in to comment.