library(dplyr)
# Example weather data (daily minimum temperatures)
weather_data <- read_weather(system.file("extdata/ppd_72150.met", package = "tidyweather"))
# Summarise without grouping
weather_options$set("require_full_year" = FALSE)
summarise_weather(weather_data)
# Summarise by group (e.g., year)
weather_data_grouped <- weather_data %>% group_by(year)
summarise_weather(weather_data_grouped)
Run the code above in your browser using DataLab