Skip to content

Commit

Permalink
adding notes
Browse files Browse the repository at this point in the history
  • Loading branch information
emmamendelsohn committed Sep 15, 2023
1 parent a73e420 commit 68c7695
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/process_weather_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ process_weather_data <- function(nasa_weather_directory_dataset, nasa_weather_da
mutate(year_day_of_year = date_selected)

# overall: calculate mean across the full dataset for the days of the year covered by the lag period
# note when 366 is included, we'll have less overall data going into the mean. This is okay since it's one of 30 values
# the same this would happen if we did this by date (we'd have sparse data for feb-29)
# it would be avoided if we did weighted monthly means
overall_means <- weather_dataset |>
filter(day_of_year %in% !!lag_dates$day_of_year ) |>
group_by(x, y) |>
Expand Down

0 comments on commit 68c7695

Please sign in to comment.