Learn R Programming

tidyextreme (version 1.0.0)

aggregate_hourly_temperature: Aggregate hourly data to daily temperature statistics

Description

Aggregate hourly data to daily temperature statistics

Usage

aggregate_hourly_temperature(
  df_hourly,
  time_col = "datetime",
  temp_col = "temperature",
  tz = "UTC"
)

Value

A tibble with columns: date, tmax, tmin

Arguments

df_hourly

Data frame with hourly temperature data

time_col

Name of the datetime column (must be POSIXct) (string)

temp_col

Name of the hourly temperature column (string)

tz

Timezone (default: "UTC")